Skip to content

Commit

Permalink
Don't mess with Accept-Encoding; elazarl#102
Browse files Browse the repository at this point in the history
  • Loading branch information
bls authored and jzhou-stripe committed Jun 27, 2021
1 parent bb691dc commit 00ead29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func removeProxyHeaders(ctx *ProxyCtx, r *http.Request) {
ctx.Logf("Sending request %v %v", r.Method, r.URL.String())
// If no Accept-Encoding header exists, Transport will add the headers it can accept
// and would wrap the response body with the relevant reader.
r.Header.Del("Accept-Encoding")
// r.Header.Del("Accept-Encoding")
// curl can add that, see
// https://jdebp.eu./FGA/web-proxy-connection-header.html
r.Header.Del("Proxy-Connection")
Expand Down

0 comments on commit 00ead29

Please sign in to comment.