-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
decode_content removes header #1397
Comments
Are you using the curl or streamhandler? Do you know if the behavior between the two is different? If curl isn't removing the header, but the StreamHandler is, then I'd be open to stopping this behavior in the StreamHandler. |
It seems to be this line: unset($headers[$normalizedKeys['content-encoding']]); in
|
It should be noted that others have requested the opposite of what is being proposed in this issue: #1075 |
This was addressed in #1409. Guzzle will add headers containing the original content encoding (x-encoded-content-encoding) and original content length (x-encoded-content-length) and continue removing the content-encoding header and updating the content-length header with the length of the decoded body. |
When using the decode_content option the "Content-Encoding" header is removed.
Is it possible to get the header to check if the content was gzipped?
The text was updated successfully, but these errors were encountered: