Add .svg to default ext list in gzip middleware

This commit is contained in:
Alexey Khalyapin 2016-01-14 11:52:03 +03:00
parent 3c96718027
commit c9e0517e5e

View file

@ -15,7 +15,7 @@ type RequestFilter interface {
} }
// defaultExtensions is the list of default extensions for which to enable gzipping. // defaultExtensions is the list of default extensions for which to enable gzipping.
var defaultExtensions = []string{"", ".txt", ".htm", ".html", ".css", ".php", ".js", ".json", ".md", ".xml"} var defaultExtensions = []string{"", ".txt", ".htm", ".html", ".css", ".php", ".js", ".json", ".md", ".xml", ".svg"}
// DefaultExtFilter creates an ExtFilter with default extensions. // DefaultExtFilter creates an ExtFilter with default extensions.
func DefaultExtFilter() ExtFilter { func DefaultExtFilter() ExtFilter {