Skip to content

Commit

Permalink
removing headers to set. removing unneed changes (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbenamram authored Aug 15, 2024
1 parent 087d9a9 commit 25b9028
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func (p *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
director := func(req *http.Request) {
req.URL.Scheme = targetURL.Scheme
req.URL.Host = targetURL.Host
req.URL.Path = r.URL.Path
req.URL.RawQuery = r.URL.RawQuery
req.Header = r.Header
req.Host = targetURL.Host

req.Header.Del(SupergoodClientIDHeader)
Expand All @@ -62,6 +59,7 @@ func (p *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
for _, cred := range vendorConfig.Credentials {
req.Header.Del(cred.Key)
req.Header.Add(cred.Key, cred.Value)
}
}
Expand Down

0 comments on commit 25b9028

Please sign in to comment.