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