Skip to content

Commit

Permalink
remove unused engine header check (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Sep 30, 2021
1 parent e10a7f1 commit d71bd56
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,6 @@ func proxyHandler(ca []byte, bearerToken string, remote *url.URL) (http.HandlerF
}

return func(w http.ResponseWriter, r *http.Request) {
// Sometimes the kubernetes proxy strips query string for Upgrade requests
// so we need to put that in the request body
if r.Header.Get("X-Infra-Query") != "" {
r.URL.RawQuery = r.Header.Get("X-Infra-Query")
}

email, ok := r.Context().Value(HttpContextKeyEmail{}).(string)
if !ok {
logging.L.Debug("Proxy handler unable to retrieve email from context")
Expand Down

0 comments on commit d71bd56

Please sign in to comment.