We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eee787 commit 7b44795Copy full SHA for 7b44795
internals/proxy/middlewares/auth.go
@@ -3,7 +3,6 @@ package middlewares
3
import (
4
"encoding/base64"
5
"net/http"
6
- "net/url"
7
"slices"
8
"strings"
9
@@ -89,7 +88,7 @@ func (data AuthMiddleware) Use() http.Handler {
89
88
} else if authQuery != "" {
90
authType = Query
91
92
- authToken, _ := url.QueryUnescape(authQuery)
+ authToken := strings.TrimSpace(authQuery)
93
94
if isValidToken(tokens, authToken) {
95
success = true
0 commit comments