Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #295 from vania-pooh/master
Browse files Browse the repository at this point in the history
Correctly working with gzipped requests (fixes #294)
  • Loading branch information
aandryashin authored Oct 26, 2019
2 parents 457195e + 7a9a282 commit 16fe0b3
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 16fe0b3

Please sign in to comment.