mirror of
https://github.com/labstack/echo.git
synced 2025-07-05 00:58:47 +02:00
Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET (#1205)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package echo
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
@ -9,7 +10,7 @@ import (
|
||||
|
||||
func TestResponse(t *testing.T) {
|
||||
e := New()
|
||||
req := httptest.NewRequest(GET, "/", nil)
|
||||
req := httptest.NewRequest(http.MethodGet, "/", nil)
|
||||
rec := httptest.NewRecorder()
|
||||
c := e.NewContext(req, rec)
|
||||
res := &Response{echo: e, Writer: rec}
|
||||
|
Reference in New Issue
Block a user