@@ -5830,23 +5830,26 @@ func TestTransportRequestWriteRoundTrip(t *testing.T) {
5830
5830
5831
5831
func TestTransportClone (t * testing.T ) {
5832
5832
tr := & Transport {
5833
- Proxy : func (* Request ) (* url.URL , error ) { panic ("" ) },
5834
- DialContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5835
- Dial : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5836
- DialTLS : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5837
- DialTLSContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5838
- TLSClientConfig : new (tls.Config ),
5839
- TLSHandshakeTimeout : time .Second ,
5840
- DisableKeepAlives : true ,
5841
- DisableCompression : true ,
5842
- MaxIdleConns : 1 ,
5843
- MaxIdleConnsPerHost : 1 ,
5844
- MaxConnsPerHost : 1 ,
5845
- IdleConnTimeout : time .Second ,
5846
- ResponseHeaderTimeout : time .Second ,
5847
- ExpectContinueTimeout : time .Second ,
5848
- ProxyConnectHeader : Header {},
5849
- GetProxyConnectHeader : func (context.Context , * url.URL , string ) (Header , error ) { return nil , nil },
5833
+ Proxy : func (* Request ) (* url.URL , error ) { panic ("" ) },
5834
+ DialContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5835
+ Dial : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5836
+ DialTLS : func (network , addr string ) (net.Conn , error ) { panic ("" ) },
5837
+ DialTLSContext : func (ctx context.Context , network , addr string ) (net.Conn , error ) { panic ("" ) },
5838
+ TLSClientConfig : new (tls.Config ),
5839
+ TLSHandshakeTimeout : time .Second ,
5840
+ DisableKeepAlives : true ,
5841
+ DisableCompression : true ,
5842
+ MaxIdleConns : 1 ,
5843
+ MaxIdleConnsPerHost : 1 ,
5844
+ MaxConnsPerHost : 1 ,
5845
+ IdleConnTimeout : time .Second ,
5846
+ ResponseHeaderTimeout : time .Second ,
5847
+ ExpectContinueTimeout : time .Second ,
5848
+ ProxyConnectHeader : Header {},
5849
+ GetProxyConnectHeader : func (context.Context , * url.URL , string ) (Header , error ) { return nil , nil },
5850
+ OnProxyConnectResponse : func (ctx context.Context , proxyURL * url.URL , connectReq * Request , connectRes * Response ) error {
5851
+ return nil
5852
+ },
5850
5853
MaxResponseHeaderBytes : 1 ,
5851
5854
ForceAttemptHTTP2 : true ,
5852
5855
TLSNextProto : map [string ]func (authority string , c * tls.Conn ) RoundTripper {
0 commit comments