Skip to content

Commit 95d6c26

Browse files
committed
Fix test
1 parent a9cf69c commit 95d6c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/auth/oauth2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (o *OAuth2) userIDFromToken(ctx context.Context, tokenSHA string, store Dat
127127
func (o *OAuth2) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) {
128128
// These paths are not API paths, but we still want to check for tokens because they maybe in the API returned URLs
129129
if !middleware.IsAPIPath(req) && !isAttachmentDownload(req) && !isAuthenticatedTokenRequest(req) &&
130-
!isGitRawReleaseOrLFSPath(req) {
130+
!gitRawReleasePathRe.MatchString(req.URL.Path) {
131131
return nil, nil
132132
}
133133

0 commit comments

Comments
 (0)