1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-12 01:22:21 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-03-08 19:40:25 -08:00
parent 296498c942
commit 34e964851f
2 changed files with 1 additions and 5 deletions

View File

@ -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))
}

View File

@ -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
}
}