We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63764ee commit 004c543Copy full SHA for 004c543
internal/auth/auth.go
@@ -11,6 +11,7 @@ func URLTokenAuth(token string) func(next http.Handler) http.Handler {
11
pathParts := strings.Split(r.URL.Path, "/")
12
if len(pathParts) < 2 || pathParts[len(pathParts)-1] != token {
13
w.WriteHeader(http.StatusUnauthorized)
14
+
15
return
16
}
17
// Remove the token part from the path to forward the request to the next handler
0 commit comments