gzip content encoding

master
bel 2023-05-07 19:16:50 -06:00
parent f3fe5ebcc2
commit 5a2340cc1d
1 changed files with 1 additions and 0 deletions

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"