mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-23 10:45:49 +03:00
Add .svg to default ext list in gzip middleware
This commit is contained in:
parent
3c96718027
commit
c9e0517e5e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue