mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
parent
296498c942
commit
34e964851f
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user