whoops
This commit is contained in:
@@ -82,7 +82,7 @@ func SetContentTypeIfMedia(w http.ResponseWriter, r *http.Request) {
|
||||
case ".gz":
|
||||
w.Header().Set("Content-Encoding", "gzip")
|
||||
v = "application/gzip"
|
||||
if path.Ext(r.URL.Path) == ".js.gz" {
|
||||
if strings.HasSuffix(r.URL.Path, ".js.gz") {
|
||||
v = "application/javascript"
|
||||
}
|
||||
case ".gif":
|
||||
|
||||
Reference in New Issue
Block a user