ing
This commit is contained in:
parent
a5e92f2b11
commit
d4a7836ef7
|
@ -114,7 +114,7 @@ func (u *Upgrader) Upgrade(ctx *fasthttp.RequestCtx, responseHeader *fasthttp.Re
|
|||
}
|
||||
|
||||
if nil != responseHeader {
|
||||
if v := responseHeader.Peek("Sec-Websocket-Extensions"); nil == v {
|
||||
if v := responseHeader.Peek("Sec-Websocket-Extensions"); nil != v {
|
||||
cb(u.returnError(ctx, fasthttp.StatusInternalServerError, "websocket: application specific 'Sec-Websocket-Extensions' headers are unsupported"))
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user