Skip to content

Commit

Permalink
enable client compression based on response header
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 19, 2017
1 parent b258b4f commit 8dc1cf9
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 8dc1cf9

Please sign in to comment.