-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix handling of Chunked requests #1742
Fix handling of Chunked requests #1742
Conversation
2693b93
to
3f82d97
Compare
Add fix for handling chunk encoding requests. If ENABLE_CHUNK_ENCODING is set to true, for requests with transfer encoding set to true. It will set wsgi.input_terminated to true which tells werkzeug to ignore content-length and read the stream till the end. break comment in multiple lines
3f82d97
to
fff280b
Compare
superset/__init__.py
Outdated
def __call__(self, environ, start_response): | ||
# Setting wsgi.input_terminated tells werkzeug.wsgi to ignore | ||
# content-length and read the stream till the end. | ||
print(environ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@xrmx Any more comments ? |
@xrmx: Any more comments on this ? |
@nishantmonu51 nope, looks fine to me |
@xrmx: can this be merged then ? do i need to contact someone else for getting this in ? |
@mistercrunch: please review. |
LGTM |
* Fix handling of Chunked requests Add fix for handling chunk encoding requests. If ENABLE_CHUNK_ENCODING is set to true, for requests with transfer encoding set to true. It will set wsgi.input_terminated to true which tells werkzeug to ignore content-length and read the stream till the end. break comment in multiple lines * remove debug print logging
Add fix for handling chunk encoding requests.
If ENABLE_CHUNK_ENCODING is set to true, for requests with transfer
encoding set to true. It will set wsgi.input_terminated to true which
tells werkzeug to ignore content-length and read the stream till the
end.
Fixes #1720