-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nil Pointer Deference with gzip/deflate Content #6
Comments
This is a bug, if the content type is deflate it shouldn't be trying gzip it should use zlib. Note thought that there are some servers that are broken an use raw deflate format. From: http://www.gzip.org/zlib/zlib_faq.html#faq38
|
Neither the Go or Python stdlib url/http handlers deal with the deflate debacle for you. The Python Requests lib does though and it really is a case of try one, fail, try the other (i.e. peek at the bytes).
The python Requests lib implementation is here And this is a very useful test page http://carsten.codimi.de/gzip.yaws/ |
What the HTTP 1.1 standard has to say about this: |
http://www.sueddeutsche.de
The text was updated successfully, but these errors were encountered: