We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e1b60 commit 33346b0Copy full SHA for 33346b0
config/http_config.go
@@ -334,6 +334,10 @@ func (c *HTTPClientConfig) Validate() error {
334
return fmt.Errorf("at most one of oauth2 client_secret & client_secret_file must be configured")
335
}
336
337
+ // Change empty URL to nil to avoid connection errors
338
+ if c.ProxyURL.URL != nil && *c.ProxyURL.URL == (url.URL{}) {
339
+ c.ProxyURL.URL = nil
340
+ }
341
return nil
342
343
0 commit comments