From 7de85e054664c5be6408619b8a592bd8dcbfb0ba Mon Sep 17 00:00:00 2001 From: li6in9muyou Date: Wed, 7 Jun 2023 16:16:10 +0800 Subject: [PATCH] fix: https://github.com/virtualzone/jwt-auth-proxy/issues/3 --- src/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.go b/src/routes.go index 22d814f..556638c 100644 --- a/src/routes.go +++ b/src/routes.go @@ -162,7 +162,7 @@ func VerifyJwtMiddleware(next http.Handler) http.Handler { } var IsWhitelisted = func(r *http.Request) bool { - url := r.URL.RequestURI() + url := r.URL.EscapedPath() // Check for whitelisted public API paths for _, whitelistedURL := range unauthorizedRoutes { if isWhitelistMatch(url, whitelistedURL) {