mirror of
				https://github.com/labstack/echo.git
				synced 2025-10-30 23:57:38 +02:00 
			
		
		
		
	
							
								
								
									
										6
									
								
								echo.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								echo.go
									
									
									
									
									
								
							| @@ -284,7 +284,11 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) { | |||||||
| 		msg = err.Error() | 		msg = err.Error() | ||||||
| 	} | 	} | ||||||
| 	if !c.Response().Committed() { | 	if !c.Response().Committed() { | ||||||
| 		c.String(code, msg) | 		if c.Request().Method() == HEAD { // Issue #608 | ||||||
|  | 			c.NoContent(code) | ||||||
|  | 		} else { | ||||||
|  | 			c.String(code, msg) | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	e.logger.Error(err) | 	e.logger.Error(err) | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user