1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-25 22:32:23 +02:00

replace POST constance with stdlib constance

This commit is contained in:
Kamandlou
2022-08-19 21:38:38 +04:30
committed by Martti T
parent fb57d96a6d
commit 534bbb81e3
2 changed files with 5 additions and 5 deletions

View File

@@ -492,7 +492,7 @@ func TestBindParam(t *testing.T) {
// Bind something with param and post data payload
body := bytes.NewBufferString(`{ "name": "Jon Snow" }`)
e2 := New()
req2 := httptest.NewRequest(POST, "/", body)
req2 := httptest.NewRequest(http.MethodPost, "/", body)
req2.Header.Set(HeaderContentType, MIMEApplicationJSON)
rec2 := httptest.NewRecorder()