enable client compression based on response header

This commit is contained in:
Alexander Emelin 2017-03-19 11:36:38 +03:00
parent b258b4fadb
commit 8dc1cf94c1
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
}