mirror of
				https://github.com/gin-gonic/gin.git
				synced 2025-11-04 09:12:12 +08:00 
			
		
		
		
	Errors in context are removed
This commit is contained in:
		
							parent
							
								
									48f4914165
								
							
						
					
					
						commit
						c7fdc2e03a
					
				@ -72,12 +72,12 @@ type Context struct {
 | 
			
		||||
func (engine *Engine) createContext(w http.ResponseWriter, req *http.Request, params httprouter.Params, handlers []HandlerFunc) *Context {
 | 
			
		||||
	c := engine.cache.Get().(*Context)
 | 
			
		||||
	c.writermem.reset(w)
 | 
			
		||||
 | 
			
		||||
	c.Request = req
 | 
			
		||||
	c.Params = params
 | 
			
		||||
	c.handlers = handlers
 | 
			
		||||
	c.Keys = nil
 | 
			
		||||
	c.index = -1
 | 
			
		||||
	c.Errors = c.Errors[0:0]
 | 
			
		||||
	return c
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user