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

Content-type header for text versions #44

Open
dato opened this issue Sep 17, 2023 · 2 comments
Open

Content-type header for text versions #44

dato opened this issue Sep 17, 2023 · 2 comments

Comments

@dato
Copy link

dato commented Sep 17, 2023

It would be great if text versions of the licenses were served as text/plain. Currently, the Content-Type header for this format is set to application/octet-streamin the response.

@pombredanne
Copy link
Member

@dato ack, thanks! and yes++.
Weirdly enough we are doing nothing special there. The file are served as-is by Github pages so this must be something weird there.

@pombredanne
Copy link
Member

Based on https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#mime-types-on-github-pages GH maps a type based on an extension and does NOT recognize .LICENSE as a text extension in https://github.com/jshttp/mime-db
We could either:

  • contribute .LICENSE and .RULE (and .ABOUT) there
  • or switch to a .txt extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants