mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix route wrap (#18360)
This commit is contained in:
		@@ -93,6 +93,9 @@ func convertHandler(handler interface{}) wrappedHandlerFunc {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			routing.UpdateFuncInfo(req.Context(), funcInfo)
 | 
								routing.UpdateFuncInfo(req.Context(), funcInfo)
 | 
				
			||||||
			t(next).ServeHTTP(resp, req)
 | 
								t(next).ServeHTTP(resp, req)
 | 
				
			||||||
 | 
								if r, ok := resp.(context.ResponseWriter); ok && r.Status() > 0 {
 | 
				
			||||||
 | 
									done = true
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user