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

Fix #138: validate HTTP headers. #139

Merged
merged 1 commit into from
Aug 23, 2014
Merged

Fix #138: validate HTTP headers. #139

merged 1 commit into from
Aug 23, 2014

Conversation

mmaker
Copy link

@mmaker mmaker commented Aug 23, 2014

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 187b4b7 on mmaker:master into 5582dd3 on fiorix:master.

@fiorix
Copy link
Owner

fiorix commented Aug 23, 2014

Why have this line:

content_length = int(headers.get("Content-Length", 0))

in the try/except block?

@mmaker
Copy link
Author

mmaker commented Aug 23, 2014

Because it fixes the following error shown in #138:
exceptions.ValueError: invalid literal for int() with base 10: '\xc3\xbc10'

fiorix added a commit that referenced this pull request Aug 23, 2014
Fix #138: validate HTTP headers.
@fiorix fiorix merged commit 1921aea into fiorix:master Aug 23, 2014
@fiorix
Copy link
Owner

fiorix commented Aug 23, 2014

Thanks

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

Successfully merging this pull request may close these issues.

3 participants