master
bel 2023-05-07 19:36:30 -06:00
parent 2d1170f158
commit 50d9191544
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
case ".gz": case ".gz":
w.Header().Set("Content-Encoding", "gzip") w.Header().Set("Content-Encoding", "gzip")
v = "application/gzip" v = "application/gzip"
if path.Ext(r.URL.Path) == ".js.gz" { if strings.HasSuffix(r.URL.Path, ".js.gz") {
v = "application/javascript" v = "application/javascript"
} }
case ".gif": case ".gif":