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: Remove content-encoding header from already decompressed responses #54

Merged
merged 2 commits into from
Feb 14, 2024

Commits on Sep 28, 2023

  1. fix: Remove content-encoding header from already decompressed responses

    When the `compress` flag is set to true, the fetch implementation sends an Accept-Encoding header and decompresses the response.
    
    However, the decompressed body is put into a `Response` that still has a `Content-Encoding` that no longer matches the actual encoding of the body.
    
    This causes issues if this `Response` object is used downstream (i.e. sent back to a browser), and there is another attempt to decode the body based on the content-encoding header.
    benbrandt committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    bbe84b3 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. Configuration menu
    Copy the full SHA
    894adcb View commit details
    Browse the repository at this point in the history