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

Rework raw file http header logic #20484

Merged
merged 16 commits into from
Jul 29, 2022
Merged

Rework raw file http header logic #20484

merged 16 commits into from
Jul 29, 2022

Commits on Jul 27, 2022

  1. Rework raw file http header logic

    - Always respect the user's configured mime type map
    - Allow more types like image/pdf/video/audio to serve with correct content-type
    - Shorten cache duration of raw files to 5 minutes, matching GitHub
    - Don't set content-disposition: attachment, let the browser decide
    - Implement rfc5987 for filenames, remove previous hack
    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    bd984fc View commit details
    Browse the repository at this point in the history
  2. fix charset logic

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    79876c7 View commit details
    Browse the repository at this point in the history
  3. simplify

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    0ca4edc View commit details
    Browse the repository at this point in the history
  4. small optimization

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    729fdbb View commit details
    Browse the repository at this point in the history
  5. another optimization

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    a6b1400 View commit details
    Browse the repository at this point in the history
  6. one more optimization

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    ec4ce64 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0d9d342 View commit details
    Browse the repository at this point in the history
  8. fix lint

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    5fc9c00 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e1d0158 View commit details
    Browse the repository at this point in the history
  10. use SplitN

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    17480bd View commit details
    Browse the repository at this point in the history
  11. fmt

    silverwind committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    50b1ec6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    388cfd3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9a44396 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b40db99 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4dceedd View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

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