diff --git a/middleware/gzip/request_filter.go b/middleware/gzip/request_filter.go index 76a9ef83c..10f25c59b 100644 --- a/middleware/gzip/request_filter.go +++ b/middleware/gzip/request_filter.go @@ -15,7 +15,7 @@ type RequestFilter interface { } // 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. func DefaultExtFilter() ExtFilter {