master
bel 2023-05-07 19:40:52 -06:00
parent 50d9191544
commit 4ccd700640
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,6 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
v = "image/jpeg" v = "image/jpeg"
case ".wasm": case ".wasm":
v = "application/wasm" v = "application/wasm"
case ".aac": case ".aac":
v = "audio/aac" v = "audio/aac"
case ".abw": case ".abw":
@ -84,6 +83,8 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
v = "application/gzip" v = "application/gzip"
if strings.HasSuffix(r.URL.Path, ".js.gz") { if strings.HasSuffix(r.URL.Path, ".js.gz") {
v = "application/javascript" v = "application/javascript"
} else if strings.HasSuffix(r.URL.Path, ".wasm.gz") {
v = "application/wasm"
} }
case ".gif": case ".gif":
v = "image/gif" v = "image/gif"