trillium-rs / trillium

Trillium is a composable toolkit for building internet applications with async rust

Home Page:https://trillium.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report for trillium-static-compiled: Missing charset in response headers

mathiversen opened this issue · comments

When i try to serve a .js file i get this error in firefox: Uncaught SyntaxError: identifier starts immediately after numeric literal and it looks like charset=utf-8 is missing in the content-type.

Not sure if you can just add the charset here: static-compiled or if you want to do something else.

In short i think it should be: Content-Type: "application/javascript; charset=utf-8"

Thanks for filing this! Will get a patch release out today