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

Set content-type for html/css/js #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ascendise
Copy link

For my generated docs I noticed the CSS not loading. All files were being sent as Content-Type: text/plain

By setting the Content-Type to text/css, the styles get loaded as expected.

I just added something quick that checks the file ending and adds the matching Content-Type. Tested it on my own instance and it now loads my stuff as expected.

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

Successfully merging this pull request may close these issues.

1 participant