Skip to content

Commit

Permalink
Fix the regex of the example proxy.gzip.contenttype
Browse files Browse the repository at this point in the history
  • Loading branch information
tino committed Mar 18, 2018
1 parent e329e31 commit bcd66de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ func TestLoad(t *testing.T) {
return cfg
},
},
{
args: []string{"-proxy.gzip.contenttype", "^(text/.*|application/(javascript|json|font-woff|xml)|.*\\+(json|xml))(;.*)?$"},
cfg: func(cfg *Config) *Config {
cfg.Proxy.GZIPContentTypes = regexp.MustCompile(`^(text/.*|application/(javascript|json|font-woff|xml)|.*\+(json|xml))(;.*)?$`)
return cfg
},
},
{
args: []string{"-proxy.log.routes", "foobar"},
cfg: func(cfg *Config) *Config {
Expand Down
2 changes: 1 addition & 1 deletion fabio.properties
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
#
# A typical example is
#
# proxy.gzip.contenttype = ^(text/.*|application/(javascript|json|font-woff|xml)|.*\+(json|xml))(;.*)?$
# proxy.gzip.contenttype = ^(text/.*|application/(javascript|json|font-woff|xml)|.*\\+(json|xml))(;.*)?$
#
# The default is
#
Expand Down

0 comments on commit bcd66de

Please sign in to comment.