mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix attachment download bug (#27486)
This commit is contained in:
		@@ -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)
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user