1
1
#[ cfg( feature = "__tls" ) ]
2
2
use http:: header:: HeaderValue ;
3
+ #[ cfg( feature = "__tls" ) ]
4
+ use http:: HeaderMap ;
3
5
use http:: uri:: { Authority , Scheme } ;
4
- use http:: { HeaderMap , Uri } ;
6
+ use http:: Uri ;
5
7
use hyper:: rt:: { Read , ReadBufCursor , Write } ;
6
8
use hyper_util:: client:: legacy:: connect:: { Connected , Connection } ;
7
9
#[ cfg( any( feature = "socks" , feature = "__tls" ) ) ]
@@ -500,7 +502,7 @@ impl ConnectorService {
500
502
) -> Result < Conn , BoxError > {
501
503
log:: debug!( "proxy({proxy_scheme:?}) intercepts '{dst:?}'" ) ;
502
504
503
- let ( proxy_dst, _auth, misc ) = match proxy_scheme {
505
+ let ( proxy_dst, _auth, _misc ) = match proxy_scheme {
504
506
ProxyScheme :: Http { host, auth, misc } => ( into_uri ( Scheme :: HTTP , host) , auth, misc) ,
505
507
ProxyScheme :: Https { host, auth, misc } => ( into_uri ( Scheme :: HTTPS , host) , auth, misc) ,
506
508
#[ cfg( feature = "socks" ) ]
@@ -512,6 +514,9 @@ impl ConnectorService {
512
514
#[ cfg( feature = "__tls" ) ]
513
515
let auth = _auth;
514
516
517
+ #[ cfg( feature = "__tls" ) ]
518
+ let misc = _misc;
519
+
515
520
match & self . inner {
516
521
#[ cfg( feature = "default-tls" ) ]
517
522
Inner :: DefaultTls ( http, tls) => {
0 commit comments