mirror of
				https://github.com/labstack/echo.git
				synced 2025-10-30 23:57:38 +02:00 
			
		
		
		
	Updating Header response to be Echo/3.0 (#686)
Updating Header response to be Echo/3.0 inside the recipe for middleware.
This commit is contained in:
		
				
					committed by
					
						 Vishal Rana
						Vishal Rana
					
				
			
			
				
	
			
			
			
						parent
						
							a5024b8038
						
					
				
				
					commit
					b2479c275d
				
			| @@ -50,7 +50,7 @@ func (s *Stats) Handle(c echo.Context) error { | ||||
| // ServerHeader middleware adds a `Server` header to the response. | ||||
| func ServerHeader(next echo.HandlerFunc) echo.HandlerFunc { | ||||
| 	return func(c echo.Context) error { | ||||
| 		c.Response().Header().Set(echo.HeaderServer, "Echo/2.0") | ||||
| 		c.Response().Header().Set(echo.HeaderServer, "Echo/3.0") | ||||
| 		return next(c) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user