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 library throws InvalidHeader because 'Content-Length' is int #15

Open
PaulosV opened this issue Nov 27, 2017 · 0 comments
Open

Comments

@PaulosV
Copy link
Contributor

PaulosV commented Nov 27, 2017

Couple of months ago, we started seeing this exception in our logs:

InvalidHeader("Header value 556 must be of type str or bytes, not <type 'int'>",)

Turns out it's the Content-Length header in __init__, which is int; it should be converted to type str.

PR which fixes the issue is ready to merge: #14.

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

1 participant