Merge pull request #230 from FZambia/fix_client_compression

Enable client compression based on response header
This commit is contained in:
Gary Burd 2017-03-19 13:27:27 -04:00 committed by GitHub
commit a91eba7f97
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Re
return nil, resp, ErrBadHandshake
}
for _, ext := range parseExtensions(req.Header) {
for _, ext := range parseExtensions(resp.Header) {
if ext[""] != "permessage-deflate" {
continue
}