From 5a2340cc1d02819e33f0d6b9df400f9a57625993 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 7 May 2023 19:16:50 -0600 Subject: [PATCH] gzip content encoding --- contenttype.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contenttype.go b/contenttype.go index 676f971..13f244d 100755 --- a/contenttype.go +++ b/contenttype.go @@ -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"