Skip to content

Commit

Permalink
Let the original user agent make it to target
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed Nov 17, 2022
1 parent b5c237b commit 58dadc6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ func NewOpenstackProxy(proxyURL, osAuth string) (*httputil.ReverseProxy, error)
if err != nil {
panic(err)
}
if _, ok := req.Header["User-Agent"]; !ok {
// explicitly disable User-Agent so it's not set to default value
req.Header.Set("User-Agent", "")
}
},
ModifyResponse: func(res *http.Response) error {
if reqURL := res.Request.URL; reqURL.Scheme == osAuthURL.Scheme && reqURL.Host == osAuthURL.Host && reqURL.Path == "/v3/auth/tokens" {
Expand Down

0 comments on commit 58dadc6

Please sign in to comment.