Commit c382c885 authored by Abiola Ibrahim's avatar Abiola Ibrahim

use middleware.Path for base path comparison

parent 7ae9e3a2
...@@ -109,7 +109,7 @@ func (r *RegexpRule) Rewrite(req *http.Request) bool { ...@@ -109,7 +109,7 @@ func (r *RegexpRule) Rewrite(req *http.Request) bool {
rPath := req.URL.Path rPath := req.URL.Path
// validate base // validate base
if !strings.HasPrefix(rPath, r.Base) { if !middleware.Path(rPath).Matches(r.Base) {
return false return false
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment