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

Don't decompress gzip if data doesn't look like gzip #746

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 16, 2023

  1. Add tests for automated .gz decompression

    This is not about Content-Encoding: gzip, which is undone
    automatically by Go net/http.
    
    This is about files that are compressed as is, e.g. /sitemap.xml.gz,
    without Content-Encoding: gzip being sent.
    WGH- committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    1b000c4 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Don't decompress gzip if data doesn't look like gzip

    Prevents incorrect response being returned in cases like
    /sitemap.xml.gz is requested, but uncompressed 404 page is served
    instead.
    
    Thanks-to: Seth Davis <seth@xyplanningnetwork.com>
    WGH- committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    d5f1ff8 View commit details
    Browse the repository at this point in the history