From 58dadc6a72c62137db5cb5bb91fedf4bdc7a972c Mon Sep 17 00:00:00 2001 From: Pierre Prinetti Date: Thu, 17 Nov 2022 18:33:07 +0100 Subject: [PATCH] Let the original user agent make it to target --- proxy/proxy.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 0fe356b..a923270 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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" {