summaryrefslogtreecommitdiff
path: root/ext/tls/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tls/lib.rs')
-rw-r--r--ext/tls/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/tls/lib.rs b/ext/tls/lib.rs
index 076ef59fb..fb4fac85b 100644
--- a/ext/tls/lib.rs
+++ b/ext/tls/lib.rs
@@ -238,6 +238,8 @@ pub fn create_http_client(
.expect("invalid client key or certificate");
}
+ tls_config.alpn_protocols = vec!["h2".into(), "http/1.1".into()];
+
let mut headers = HeaderMap::new();
headers.insert(USER_AGENT, user_agent.parse().unwrap());
let mut builder = Client::builder()