mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-23 15:31:40 -04:00
use middleware.Path for base path comparison
This commit is contained in:
parent
7ae9e3a262
commit
c382c885e4
@ -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…
x
Reference in New Issue
Block a user