From 7a9a282822d5c43d0c90649c61183b1cc8e75ab6 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Sat, 26 Oct 2019 19:51:20 +0300 Subject: [PATCH] Correctly working with gzipped requests (fixes #294) --- proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy.go b/proxy.go index 60d1a8b..9490bda 100644 --- a/proxy.go +++ b/proxy.go @@ -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) }