Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
li6in9muyou committed Jun 7, 2023
1 parent b94461d commit 7de85e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7de85e0

Please sign in to comment.