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: Escape URLs when files are served by nginx #1224

Merged
merged 1 commit into from
Oct 6, 2024

Commits on Oct 6, 2024

  1. fix: Escape URLs when files are served by nginx

    When serving files using the `X-Accel-Redirect` header in nginx, the
    header values must be URL-encoded. Otherwise, nginx will not be able
    to serve the files if they contain special characters.
    
    This commit adds a new `FileRedirectResponse` class to the `utils.nginx`
    module, to simplify the creation of responses that serve files using the
    `X-Accel-Redirect` header.
    
    Fixes #1212, #1223.
    adamantike committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    60ff832 View commit details
    Browse the repository at this point in the history