From 04b7a26c03ea2e40ba0cd4861fd108979ec1850a Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 23 Jul 2023 10:12:13 +0800 Subject: [PATCH] chore: fix request path (#2014) --- api/v1/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/jwt.go b/api/v1/jwt.go index 83db1986..64de6da3 100644 --- a/api/v1/jwt.go +++ b/api/v1/jwt.go @@ -74,7 +74,7 @@ func audienceContains(audience jwt.ClaimStrings, token string) bool { // will try to generate new access token and refresh token. func JWTMiddleware(server *APIV1Service, next echo.HandlerFunc, secret string) echo.HandlerFunc { return func(c echo.Context) error { - path := c.Request().URL.Path + path := c.Path() method := c.Request().Method if server.defaultAuthSkipper(c) {