Skip to content

Commit

Permalink
Fix: gzip handling
Browse files Browse the repository at this point in the history
Related: #836
  • Loading branch information
till committed Feb 9, 2022
1 parent d59ac52 commit 9ea1270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipeline/authn/authenticator_cookie_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ func forwardRequestToSessionStore(r *http.Request, checkSessionURL string, prese

// We need to make a COPY of the header, not modify r.Header!
for k, v := range r.Header {
// remove Accept-Encoding to let the transport handle gzip
if k == "Accept-Encoding" {
continue
}
req.Header[k] = v
}

Expand Down

0 comments on commit 9ea1270

Please sign in to comment.