-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
file_server.ts is not setting the correct content-type header when serving index.html #4056
Comments
see #3423 (comment) |
Thanks @zhmushan for the clarification! So is there a basic webserver for Deno anywhere? like http_server from node? i google but didn't found anything. |
Ideally, html files should be rendered instead of displaying the code directly. But we will face this issue, if we use the http-server mode directly: Because of the name of |
Fair enough, I agree. So probably we could provide a dedicated web server script like Node's http_server? |
When file_server.ts is serving the index.html, the browser is not rendering the page because it is receiving text/plain header for the content-type.
The text was updated successfully, but these errors were encountered: