Update context.go
all this status was setting in error.go, this line will cause multi-resp
This commit is contained in:
		
							parent
							
								
									a89f14d80d
								
							
						
					
					
						commit
						b8fc42d38d
					
				| @ -54,7 +54,6 @@ func (ctx *Context) Redirect(status int, localurl string) { | ||||
| // Abort stops this request. | ||||
| // if beego.ErrorMaps exists, panic body. | ||||
| func (ctx *Context) Abort(status int, body string) { | ||||
| 	ctx.ResponseWriter.WriteHeader(status) | ||||
| 	panic(body) | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user