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

Plug.Static: Add support for preset MIME types #1214

Merged
merged 2 commits into from
Apr 3, 2024

Commits on Apr 3, 2024

  1. Add support for preset MIME types

    It is not always possible to express custom types with a static
    filename -> type mapping. Currently Plug.Static will (if the file
    exists) always overwrite the header and halt the connection making it
    impossible to preset or later overwrite it based on custom logic.
    
    Thus introduce an opt-out mode to preserve whatever
    `Content-Type` was set or not set before.
    TheOneric committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    6b8ffe3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    daa69b0 View commit details
    Browse the repository at this point in the history