gzip content encoding
This commit is contained in:
@@ -80,6 +80,7 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
|
|||||||
case ".eot":
|
case ".eot":
|
||||||
v = "application/vnd.ms-fontobject"
|
v = "application/vnd.ms-fontobject"
|
||||||
case ".gz":
|
case ".gz":
|
||||||
|
w.Header().Set("Content-Encoding", "gzip")
|
||||||
v = "application/gzip"
|
v = "application/gzip"
|
||||||
case ".gif":
|
case ".gif":
|
||||||
v = "image/gif"
|
v = "image/gif"
|
||||||
|
|||||||
Reference in New Issue
Block a user