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

Allow more lenient gzip decompression #156

Merged
1 commit merged into from Aug 27, 2021
Merged

Conversation

klutchell
Copy link
Contributor

Be more lenient with decoding compressed responses, since (very rarely)
servers send slightly invalid gzip responses that are still accepted
by common browsers.

Always using Z_SYNC_FLUSH is what cURL does.

Change-type: patch
Signed-off-by: Kyle Harding kyle@balena.io

Related upstream PR: request/request#2492

@klutchell klutchell requested a review from Page- August 27, 2021 19:06
@klutchell klutchell changed the title Allow more levient gzip decompression Allow more lenient gzip decompression Aug 27, 2021
Be more lenient with decoding compressed responses, since (very rarely)
servers send slightly invalid gzip responses that are still accepted
by common browsers.

Always using Z_SYNC_FLUSH is what cURL does.

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
@ghost ghost merged commit cfe0c1a into master Aug 27, 2021
@ghost ghost deleted the klutchell/gzip-sync-flush branch August 27, 2021 19:38
zwhitchcox added a commit to balena-io-modules/balena-image-manager that referenced this pull request Sep 5, 2021
zwhitchcox added a commit to balena-io-modules/balena-image-manager that referenced this pull request Sep 5, 2021
This pull request was closed.
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.

None yet

2 participants