Skip to content

Commit 7de85e0

Browse files
committed
1 parent b94461d commit 7de85e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func VerifyJwtMiddleware(next http.Handler) http.Handler {
162162
}
163163

164164
var IsWhitelisted = func(r *http.Request) bool {
165-
url := r.URL.RequestURI()
165+
url := r.URL.EscapedPath()
166166
// Check for whitelisted public API paths
167167
for _, whitelistedURL := range unauthorizedRoutes {
168168
if isWhitelistMatch(url, whitelistedURL) {

0 commit comments

Comments
 (0)