mirror of
https://github.com/labstack/echo.git
synced 2025-06-17 00:17:36 +02:00
Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET (#1205)
This commit is contained in:
@ -70,7 +70,7 @@ func TestProxy(t *testing.T) {
|
||||
// Random
|
||||
e := echo.New()
|
||||
e.Use(Proxy(rb))
|
||||
req := httptest.NewRequest(echo.GET, "/", nil)
|
||||
req := httptest.NewRequest(http.MethodGet, "/", nil)
|
||||
rec := newCloseNotifyRecorder()
|
||||
e.ServeHTTP(rec, req)
|
||||
body := rec.Body.String()
|
||||
|
Reference in New Issue
Block a user