compress *.htm file

This commit is contained in:
Chris Lu
2014-07-08 09:32:55 -07:00
parent 413e5c145c
commit 5f19af8fce

View File

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