mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-20 22:12:33 -04:00
http: Patch path matcher to ignore dots and spaces (#2917)
(Try saying "patch path match" ten times fast)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user