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
inaccurate headers reported in some cases #46
Comments
Interesting. I wonder if these are happening at the heroku level or the app level. |
You can hit a direct tcp route to the app here: http://route.heroku.com:26966 |
Interesting. The behavior is still slightly inaccurate:
So the headers dict contains an empty-string value for
|
Interesting. I wonder if this is a wsgi bug or something to bring up with either gunicorn or werkzeug? /cc @mitsuhiko, @benoitc |
Heh, the reported origin of |
Correct. |
The
So that one might be some sort of proxying issue. |
I was the person originally bit by the issue, trying to debug Requests. Apart from this niggle, great service :) |
WSGI can't work without content length so Werkzeug assumes that if the content length is not provided the request wanted to transmit no data at all. Regarding the keep alive behavior: that one is controlled by the WSGI server. The application is explicitly not allowed to control that. |
About the content-length : that's not totally true http://www.python.org/dev/peps/pep-3333/#handling-the-content-length-header |
@benoitc this is referring to the outgoing content length header, not the incoming one. |
Sounds like nothing httpbin can do here then? Close able? |
If the client fails to send
Content-length: 0
on a blank POST,/post
will report it anyway:https://github.com/kennethreitz/requests/issues/223#issuecomment-5501503
/headers
will send backConnection: Keep-alive
even when the client sentConnection: close
:https://github.com/kennethreitz/requests/issues/458
The text was updated successfully, but these errors were encountered: