mirror of
https://github.com/labstack/echo.git
synced 2025-12-07 23:12:43 +02:00
Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET (#1205)
This commit is contained in:
@@ -75,7 +75,7 @@ func redirectTest(fn middlewareGenerator, host string, header http.Header) *http
|
||||
next := func(c echo.Context) (err error) {
|
||||
return c.NoContent(http.StatusOK)
|
||||
}
|
||||
req := httptest.NewRequest(echo.GET, "/", nil)
|
||||
req := httptest.NewRequest(http.MethodGet, "/", nil)
|
||||
req.Host = host
|
||||
if header != nil {
|
||||
req.Header = header
|
||||
|
||||
Reference in New Issue
Block a user