diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-10-10 23:33:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 15:33:56 +0000 |
commit | 5c9fbcca00caaf676abbb475815a2a3a91107f1d (patch) | |
tree | 69777abf5ad1f933c4a6485329f2d4d86a03ed3d /services/auth/reverseproxy.go | |
parent | 7ff1f2527c7121447d88ea03ba8b436ed55813b9 (diff) | |
download | gitea-5c9fbcca00caaf676abbb475815a2a3a91107f1d.tar.gz gitea-5c9fbcca00caaf676abbb475815a2a3a91107f1d.zip |
Fix attachment download bug (#27486)
Diffstat (limited to 'services/auth/reverseproxy.go')
-rw-r--r-- | services/auth/reverseproxy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go index ad525f5c95..359c1f2473 100644 --- a/services/auth/reverseproxy.go +++ b/services/auth/reverseproxy.go @@ -117,7 +117,7 @@ func (r *ReverseProxy) Verify(req *http.Request, w http.ResponseWriter, store Da } // Make sure requests to API paths, attachment downloads, git and LFS do not create a new session - if !middleware.IsAPIPath(req) && !isAttachmentDownload(req) && !isGitRawReleaseOrLFSPath(req) { + if !middleware.IsAPIPath(req) && !isAttachmentDownload(req) && !isGitRawOrAttachOrLFSPath(req) { if sess != nil && (sess.Get("uid") == nil || sess.Get("uid").(int64) != user.ID) { handleSignIn(w, req, sess, user) } |