1
0
mirror of https://github.com/labstack/echo.git synced 2025-06-25 00:47:01 +02:00

Changes for sub router #10

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-04-02 05:02:52 -07:00
parent 0337e9d13f
commit d8aae6ea43
9 changed files with 138 additions and 74 deletions

View File

@ -39,7 +39,7 @@ func TestContext(t *testing.T) {
b, _ := json.Marshal(u)
w := httptest.NewRecorder()
r, _ := http.NewRequest("PUT", "/users/1", bytes.NewReader(b))
r, _ := http.NewRequest(MethodPUT, "/users/1", bytes.NewReader(b))
r.Header.Add(HeaderContentType, MIMEJSON)
e.ServeHTTP(w, r)
if w.Code != http.StatusCreated {