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

Fixed #1052, dropped param alias feature

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2018-01-30 19:02:29 -08:00
parent 67a5dcdb91
commit ec048ea523
4 changed files with 1 additions and 28 deletions

View File

@@ -303,18 +303,6 @@ func TestContextPathParam(t *testing.T) {
assert.Equal(t, "501", c.Param("fid"))
}
func TestContextPathParamNamesAlais(t *testing.T) {
e := New()
req := httptest.NewRequest(GET, "/", nil)
c := e.NewContext(req, nil)
c.SetParamNames("id,name")
c.SetParamValues("joe")
assert.Equal(t, "joe", c.Param("id"))
assert.Equal(t, "joe", c.Param("name"))
}
func TestContextFormValue(t *testing.T) {
f := make(url.Values)
f.Set("name", "Jon Snow")