diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-07-08 09:32:55 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-07-08 09:32:55 -0700 |
| commit | 5f19af8fce8ddc52db6e7c507faf03a18c1b2022 (patch) | |
| tree | 671a0199d041b26e66786efadb6dd22c3eb7c385 /go | |
| parent | 413e5c145cd73693d2bda1b3038ce644ab71248a (diff) | |
| download | seaweedfs-5f19af8fce8ddc52db6e7c507faf03a18c1b2022.tar.xz seaweedfs-5f19af8fce8ddc52db6e7c507faf03a18c1b2022.zip | |
compress *.htm file
Diffstat (limited to 'go')
| -rw-r--r-- | go/storage/compress.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/storage/compress.go b/go/storage/compress.go index b557b3411..846fd0714 100644 --- a/go/storage/compress.go +++ b/go/storage/compress.go @@ -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/") { |
