Browse Source

compress *.htm file

pull/2/head
Chris Lu 11 years ago
parent
commit
5f19af8fce
  1. 2
      go/storage/compress.go

2
go/storage/compress.go

@ -19,7 +19,7 @@ func IsGzippable(ext, mtype string) bool {
switch ext { switch ext {
case ".zip", ".rar", ".gz", ".bz2", ".xz": case ".zip", ".rar", ".gz", ".bz2", ".xz":
return false return false
case ".pdf", ".txt", ".html", ".css", ".js", ".json":
case ".pdf", ".txt", ".html", ".htm", ".css", ".js", ".json":
return true return true
} }
if strings.HasPrefix(mtype, "application/") { if strings.HasPrefix(mtype, "application/") {

Loading…
Cancel
Save