-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Chunked requests still don't really work #1149
Comments
This is more than just the simple bug with I tested this out on Django just to be sure we're not doing something weird, it sees an empty stream too. |
The simplest way forward is to provide a middleware that sets |
Which wsgi currently supports |
In addition to checking Per RFC2616
... noting that Should it really be necessary to set |
(Updated, because I realised I had been attempting to fix this, so got confused by the original issue and the issue that made me give up)
I'm making a chunked request to an app that uses Werkzeug (current git master). get_input_stream ends up calling
LimitedStream(wsgi.input, min(content_length, max_content_length))
.min(content_length, max_content_length)
will always be None if using chunked encoding.In an attempt to make progress I tried using
LimitedStream(stream, content_length or max_content_length)
, but then I end up getting aClientDisconnected
exception, because we can't tell the difference between a client disconnecting and the chunked request simply being done, aswsgi.input.read()
just returns a 0-length string in both cases.The text was updated successfully, but these errors were encountered: