From c9e0517e5e8d90f901db670377ab3de7b057011c Mon Sep 17 00:00:00 2001 From: Alexey Khalyapin Date: Thu, 14 Jan 2016 11:52:03 +0300 Subject: [PATCH] Add .svg to default ext list in gzip middleware --- middleware/gzip/request_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/gzip/request_filter.go b/middleware/gzip/request_filter.go index 76a9ef83..10f25c59 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 {