Skip to content
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

requests.head is not returning correct content-length in nginx environment #15

Closed
kmillet opened this issue Feb 3, 2016 · 3 comments
Closed

Comments

@kmillet
Copy link
Contributor

kmillet commented Feb 3, 2016

Is it possible to implement a way to get the content-length of a file without first downloading the whole file. Currently we tried to get the content-length by using requests.head but it seems this returns 0 in our setup. (nginx+gunicorn)

@BartSaelen
Copy link
Contributor

The problem is this line in the webob response code:
https://github.com/Pylons/webob/blob/master/webob/response.py#L146
Because the body is empty

@BartSaelen
Copy link
Contributor

ok, after setting response.content_length explicitly, this is not an issue

problem is with the service bus handling the request

@koenedaele
Copy link
Member

Conclusion, not a problem with Augeias. We could implement something like a separat endpoint for metadata, but that's not a priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants