@@ -5878,23 +5878,26 @@ func TestTransportRequestWriteRoundTrip(t *testing.T) {
5878
5878
5879
5879
func TestTransportClone (t * testing.T ) {
5880
5880
tr := & Transport {
5881
- Proxy : func (* Request ) (* url.URL , error ) { panic ("" ) },
5882
- DialContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5883
- Dial : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5884
- DialTLS : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5885
- DialTLSContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5886
- TLSClientConfig : new (tls.Config ),
5887
- TLSHandshakeTimeout : time .Second ,
5888
- DisableKeepAlives : true ,
5889
- DisableCompression : true ,
5890
- MaxIdleConns : 1 ,
5891
- MaxIdleConnsPerHost : 1 ,
5892
- MaxConnsPerHost : 1 ,
5893
- IdleConnTimeout : time .Second ,
5894
- ResponseHeaderTimeout : time .Second ,
5895
- ExpectContinueTimeout : time .Second ,
5896
- ProxyConnectHeader : Header {},
5897
- GetProxyConnectHeader : func (context.Context , * url.URL , string ) (Header , error ) { return nil , nil },
5881
+ Proxy : func (* Request ) (* url.URL , error ) { panic ("" ) },
5882
+ DialContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5883
+ Dial : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5884
+ DialTLS : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5885
+ DialTLSContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5886
+ TLSClientConfig : new (tls.Config ),
5887
+ TLSHandshakeTimeout : time .Second ,
5888
+ DisableKeepAlives : true ,
5889
+ DisableCompression : true ,
5890
+ MaxIdleConns : 1 ,
5891
+ MaxIdleConnsPerHost : 1 ,
5892
+ MaxConnsPerHost : 1 ,
5893
+ IdleConnTimeout : time .Second ,
5894
+ ResponseHeaderTimeout : time .Second ,
5895
+ ExpectContinueTimeout : time .Second ,
5896
+ ProxyConnectHeader : Header {},
5897
+ GetProxyConnectHeader : func (context.Context , * url.URL , string ) (Header , error ) { return nil , nil },
5898
+ OnProxyConnectResponse : func (ctx context.Context , proxyURL * url.URL , connectReq * Request , connectRes * Response ) error {
5899
+ return nil
5900
+ },
5898
5901
MaxResponseHeaderBytes : 1 ,
5899
5902
ForceAttemptHTTP2 : true ,
5900
5903
TLSNextProto : map [string ]func (authority string , c * tls.Conn ) RoundTripper {
0 commit comments