Skip to content

Commit

Permalink
Correctly working with gzipped requests (fixes #294)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Oct 26, 2019
1 parent 457195e commit 7a9a282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func session(ctx context.Context, h *Host, header http.Header, c caps) (map[stri
req.Header.Add(key, value)
}
}
req.Header.Del("Accept-Encoding")
if h.Username != "" && h.Password != "" {
req.SetBasicAuth(h.Username, h.Password)
}
Expand Down

0 comments on commit 7a9a282

Please sign in to comment.