mirror of
https://github.com/labstack/echo.git
synced 2025-07-03 00:56:59 +02:00
Set maxParam with SetParamNames (#1535)
* Set maxParam with SetParamNames Fixes #1492 * Revert go.mod
This commit is contained in:
@ -332,7 +332,6 @@ func TestBindbindData(t *testing.T) {
|
||||
|
||||
func TestBindParam(t *testing.T) {
|
||||
e := New()
|
||||
*e.maxParam = 2
|
||||
req := httptest.NewRequest(GET, "/", nil)
|
||||
rec := httptest.NewRecorder()
|
||||
c := e.NewContext(req, rec)
|
||||
@ -363,7 +362,6 @@ func TestBindParam(t *testing.T) {
|
||||
// Bind something with param and post data payload
|
||||
body := bytes.NewBufferString(`{ "name": "Jon Snow" }`)
|
||||
e2 := New()
|
||||
*e2.maxParam = 2
|
||||
req2 := httptest.NewRequest(POST, "/", body)
|
||||
req2.Header.Set(HeaderContentType, MIMEApplicationJSON)
|
||||
|
||||
|
Reference in New Issue
Block a user