gzip content encoding
parent
f3fe5ebcc2
commit
5a2340cc1d
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue