File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -581,17 +581,17 @@ mod reqwest_be {
581
581
582
582
#[ cfg( feature = "reqwest-rustls-tls" ) ]
583
583
pub ( super ) static CLIENT_RUSTLS_TLS : LazyLock < Client > = LazyLock :: new ( || {
584
+ let mut tls_config =
585
+ rustls:: ClientConfig :: builder_with_provider ( Arc :: new ( aws_lc_rs:: default_provider ( ) ) )
586
+ . with_safe_default_protocol_versions ( )
587
+ . unwrap ( )
588
+ . with_platform_verifier ( )
589
+ . with_no_client_auth ( ) ;
590
+ tls_config. alpn_protocols = vec ! [ b"http/1.1" . to_vec( ) ] ;
591
+
584
592
let catcher = || {
585
593
client_generic ( )
586
- . use_preconfigured_tls (
587
- rustls:: ClientConfig :: builder_with_provider ( Arc :: new (
588
- aws_lc_rs:: default_provider ( ) ,
589
- ) )
590
- . with_safe_default_protocol_versions ( )
591
- . unwrap ( )
592
- . with_platform_verifier ( )
593
- . with_no_client_auth ( ) ,
594
- )
594
+ . use_preconfigured_tls ( tls_config)
595
595
. user_agent ( super :: REQWEST_RUSTLS_TLS_USER_AGENT )
596
596
. build ( )
597
597
} ;
You can’t perform that action at this time.
0 commit comments