mirror of https://github.com/gorilla/websocket.git
Merge pull request #230 from FZambia/fix_client_compression
Enable client compression based on response header
This commit is contained in:
commit
a91eba7f97
|
@ -369,7 +369,7 @@ func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Re
|
||||||
return nil, resp, ErrBadHandshake
|
return nil, resp, ErrBadHandshake
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, ext := range parseExtensions(req.Header) {
|
for _, ext := range parseExtensions(resp.Header) {
|
||||||
if ext[""] != "permessage-deflate" {
|
if ext[""] != "permessage-deflate" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue