http: Patch path matcher to ignore dots and spaces (#2917)

(Try saying "patch path match" ten times fast)
This commit is contained in:
Matthew Holt
2019-12-17 10:14:04 -07:00
parent 6455efa5d3
commit dae4913fe3
4 changed files with 23 additions and 2 deletions
@@ -115,7 +115,8 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
// php_fastcgi /subpath localhost:7777
//
// then the resulting routes are wrapped in a subroute that uses the
// user's matcher as a prerequisite to enter the subroute.
// user's matcher as a prerequisite to enter the subroute. In other
// words, the directive's matcher is necessary, but not sufficient.
func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error) {
if !h.Next() {
return nil, h.ArgErr()