mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-07 18:30:26 +00:00
Fix a typo -> serve CSS with proper Content-Type
This commit is contained in:
parent
ace1506bcc
commit
41a5da7f56
@ -42,7 +42,7 @@ func httpErr(w http.ResponseWriter, status int, name, title, errMsg string) {
|
|||||||
func handlerStyle(w http.ResponseWriter, rq *http.Request) {
|
func handlerStyle(w http.ResponseWriter, rq *http.Request) {
|
||||||
util.PrepareRq(rq)
|
util.PrepareRq(rq)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", mime.TypeByExtension("css"))
|
w.Header().Set("Content-Type", mime.TypeByExtension(".css"))
|
||||||
for _, name := range stylesheets {
|
for _, name := range stylesheets {
|
||||||
file, err := static.FS.Open(name)
|
file, err := static.FS.Open(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user