1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +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:
Antonio Pagano 2016-10-24 18:20:08 -05:00 committed by Vishal Rana
parent a5024b8038
commit b2479c275d

View File

@ -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)
}
}