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

Retain path when using fallback precompressed path #445

Merged
merged 1 commit into from Mar 29, 2024

Commits on Mar 27, 2024

  1. Retain path when using fallback precompressed path

    If there is no brotli-encoded asset and instead only a gzip-encoded one,
    the code first tries to serve the brotli-encoded form and then falls
    back on the gzip-encoded one. When doing so, however, it uses a path
    name that has been overwritten which leads to the wrong file being
    served.
    
    For instance, if a request is for `/dir/`, then `pathname` will first be
    changed to `index.html`. On the retry, `index.html` will be used as the
    base pathname and thus `/index.html` will be served instead of
    `/dir/index.html`.
    colatkinson committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    40bf00f View commit details
    Browse the repository at this point in the history