one more
parent
50d9191544
commit
4ccd700640
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue