mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-18 22:41:04 +02:00
+1
-1
@@ -580,7 +580,7 @@ func isAllowedMethod(req *http.Request, route allowedRoute) bool {
|
||||
}
|
||||
|
||||
func isAllowedPath(req *http.Request, route allowedRoute) bool {
|
||||
matches := route.pathRegex.MatchString(requestutil.GetRequestURI(req))
|
||||
matches := route.pathRegex.MatchString(requestutil.GetRequestPath(req))
|
||||
|
||||
if route.negate {
|
||||
return !matches
|
||||
|
||||
Reference in New Issue
Block a user