diff options
| author | Francis Lavoie <lavofr@gmail.com> | 2020-05-26 17:27:51 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 15:27:51 -0600 | 
| commit | 8c5d00b2bc815c182e1a510be6dddc128949bf23 (patch) | |
| tree | ad09755b3df1de68f885542a849533da5410121d /caddyconfig/httpcaddyfile/builtins.go | |
| parent | aa20878887c592fd79bef2a9943b1013ead8bac2 (diff) | |
httpcaddyfile: New `handle_path` directive (#3281)
* caddyconfig: WIP implementation of handle_path
* caddyconfig: Complete the implementation - h.NewRoute was key
* caddyconfig: Add handle_path integration test
* caddyhttp: Use the path matcher as-is, strip the trailing *, update test
Diffstat (limited to 'caddyconfig/httpcaddyfile/builtins.go')
| -rw-r--r-- | caddyconfig/httpcaddyfile/builtins.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go index 2bb9b90..7026dfe 100644 --- a/caddyconfig/httpcaddyfile/builtins.go +++ b/caddyconfig/httpcaddyfile/builtins.go @@ -442,11 +442,11 @@ func parseRoute(h Helper) (caddyhttp.MiddlewareHandler, error) {  }  func parseHandle(h Helper) (caddyhttp.MiddlewareHandler, error) { -	return parseSegmentAsSubroute(h) +	return ParseSegmentAsSubroute(h)  }  func parseHandleErrors(h Helper) ([]ConfigValue, error) { -	subroute, err := parseSegmentAsSubroute(h) +	subroute, err := ParseSegmentAsSubroute(h)  	if err != nil {  		return nil, err  	} | 
