mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +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:
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user