gzip content encoding

This commit is contained in:
bel
2023-05-07 19:16:50 -06:00
parent f3fe5ebcc2
commit 5a2340cc1d

View File

@@ -80,6 +80,7 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
case ".eot":
v = "application/vnd.ms-fontobject"
case ".gz":
w.Header().Set("Content-Encoding", "gzip")
v = "application/gzip"
case ".gif":
v = "image/gif"