diff --git a/middleware/auth_test.go b/middleware/auth_test.go index b20ab1ac..df21ecf1 100644 --- a/middleware/auth_test.go +++ b/middleware/auth_test.go @@ -53,8 +53,4 @@ func TestBasicAuth(t *testing.T) { he = h.Handle(c).(*echo.HTTPError) assert.Equal(t, http.StatusUnauthorized, he.Code()) assert.Equal(t, basic+" realm=Restricted", res.Header().Get(echo.WWWAuthenticate)) - - // WebSocket - c.Request().Header().Set(echo.Upgrade, echo.WebSocket) - assert.NoError(t, h.Handle(c)) } diff --git a/router.go b/router.go index 0e722072..0bed809f 100644 --- a/router.go +++ b/router.go @@ -171,7 +171,7 @@ func (r *Router) insert(method, path string, h Handler, t kind, ppath string, pn // Node already exists if h != nil { cn.addHandler(method, h) - cn.ppath = path + cn.ppath = ppath cn.pnames = pnames } }