mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-05 18:44:58 +03:00
use middleware.Path for base path comparison
This commit is contained in:
parent
7ae9e3a262
commit
c382c885e4
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ func (r *RegexpRule) Rewrite(req *http.Request) bool {
|
|||
rPath := req.URL.Path
|
||||
|
||||
// validate base
|
||||
if !strings.HasPrefix(rPath, r.Base) {
|
||||
if !middleware.Path(rPath).Matches(r.Base) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue