Skip to content

Commit

Permalink
Merge pull request #230 from FZambia/fix_client_compression
Browse files Browse the repository at this point in the history
Enable client compression based on response header
  • Loading branch information
garyburd authored Mar 19, 2017
2 parents b258b4f + 8dc1cf9 commit a91eba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a91eba7

Please sign in to comment.