refactor: migrate apitool from netx to netxlite (#496)
I discovered which transport were used by apitool and made sure he gets the same transports now. While there, I discovered an issue with ooni/oohttp that has been fixed with cba9b1ce5e.
Part of https://github.com/ooni/probe/issues/1591
This commit is contained in:
parent
00a85cb7f0
commit
1d79d70b43
15 changed files with 149 additions and 102 deletions
|
|
@ -250,7 +250,7 @@ func NewHTTPTransport(config Config) HTTPRoundTripper {
|
|||
txp = httptransport.SaverTransactionHTTPTransport{
|
||||
RoundTripper: txp, Saver: config.HTTPSaver}
|
||||
}
|
||||
txp = httptransport.UserAgentTransport{RoundTripper: txp}
|
||||
txp = &httptransport.UserAgentTransport{HTTPTransport: txp}
|
||||
return txp
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue