-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
HTTP status 204 with a content-encoding: gzip #857
Comments
+1 |
Perhaps we can sanity check |
+1 |
+1 |
I can't fix this without more information. Please don't +1, as this does not help at all. Please submit unit tests or a full dump of server and client HTTP headers. |
@pornel Sorry, I will add more info later. |
I doubt this is the cause, but just in case.... A number of conditionals aren't triggered if instantiating the @pornel I'm not sure if you'd consider this a superagent bug or not. Personally I think it is because the |
Just run the following code:
and you will get the error:
|
Thanks for the test case with |
@pornel Great ! |
* origin/master: Normalize spelling of SuperAgent in docs Remove superagent-promise-plugin from plugin list Fixes #857 Test trailing junk Fixed test Formatting Drop workaround for ancient Node No slacking when constructing JSON. Added authentication with client certificates. Update Readme.md Add .catch for more Promise-like interface Include the root file, so that patched agent works Correct event.direction in uploads Return this when overwriting the response object's on() method Changelog v2.2.0 add 'timedout' property to node Request instance Add tests to reproduce error when used only .catch without .then Unify null querystring values in node and browser environments. v2.1.0
HTTP endpoint that returns a 204 with a
content-encoding: gzip
, it will throw Error[Error: unexpected end of file] errno: -5, code: 'Z_BUF_ERROR'
.The text was updated successfully, but these errors were encountered: