We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
app.static should specify UTF-8 for MIME types text/*. Currently it returns simply text/html for HTML files.
app.static
text/*
text/html
from sanic import Sanic app = Sanic("index") app.static("/", ".", index="index.html")
content-type: text/html; charset=UTF-8
Sanic CLI
Linux
24.6.0
No response
The text was updated successfully, but these errors were encountered:
Hi, I would like to work on this issue.
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Describe the bug
app.static
should specify UTF-8 for MIME typestext/*
. Currently it returns simplytext/html
for HTML files.Code snippet
Expected Behavior
How do you run Sanic?
Sanic CLI
Operating System
Linux
Sanic Version
24.6.0
Additional context
No response
The text was updated successfully, but these errors were encountered: