aboutcode-org / scancode-licensedb

A free and open database of all the licenses, in particular all the open source software licenses
https://scancode-licensedb.aboutcode.org
32 stars 4 forks source link

Content-type header for text versions #44

Open dato opened 1 year ago

dato commented 1 year ago

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 commented 12 months ago

@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 commented 1 week ago

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: