Skip to content

Commit

Permalink
Update internal/netxlite/httpfactory.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone authored Sep 14, 2023
1 parent 81003c1 commit 97c9edf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/netxlite/httpfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func NewHTTPTransportWithOptions(logger model.Logger,
func HTTPTransportOptionProxyURL(proxyURL *url.URL) HTTPTransportOption {
return func(txp *oohttp.Transport) {
txp.Proxy = func(r *oohttp.Request) (*url.URL, error) {
// "If Proxy is nil or returns a nil *URL, no proxy is used."
return proxyURL, nil
}
}
Expand Down

0 comments on commit 97c9edf

Please sign in to comment.