From 4ccd700640fc8ff0dfee6aa1ce31a295c807b8c5 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 7 May 2023 19:40:52 -0600 Subject: [PATCH] one more --- contenttype.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contenttype.go b/contenttype.go index 535bbe8..a6d2c9a 100755 --- a/contenttype.go +++ b/contenttype.go @@ -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"