chore: fix request path (#2014)

This commit is contained in:
boojack 2023-07-23 10:12:13 +08:00 committed by GitHub
parent 28203bbaf9
commit 04b7a26c03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {