From 46b155d0e824421ebea1ae3ce6802af38e4b54b2 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 13 Dec 2019 16:13:48 -0500 Subject: [PATCH] Disable H2 ALPN. --- components/net/resource_thread.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/net/resource_thread.rs b/components/net/resource_thread.rs index c948055bc55..3e797f8917b 100644 --- a/components/net/resource_thread.rs +++ b/components/net/resource_thread.rs @@ -4,7 +4,7 @@ //! A thread that takes a URL and streams back the binary data. -use crate::connector::{create_http_client, create_tls_config, ALPN_H2_H1}; +use crate::connector::{create_http_client, create_tls_config, ALPN_H1}; use crate::cookie; use crate::cookie_storage::CookieStorage; use crate::fetch::cors_cache::CorsCache; @@ -149,7 +149,7 @@ fn create_http_states( http_cache: RwLock::new(http_cache), http_cache_state: Mutex::new(HashMap::new()), client: create_http_client( - create_tls_config(&certs, ALPN_H2_H1), + create_tls_config(&certs, ALPN_H1), HANDLE.lock().unwrap().executor(), ), }; @@ -162,7 +162,7 @@ fn create_http_states( http_cache: RwLock::new(HttpCache::new()), http_cache_state: Mutex::new(HashMap::new()), client: create_http_client( - create_tls_config(&certs, ALPN_H2_H1), + create_tls_config(&certs, ALPN_H1), HANDLE.lock().unwrap().executor(), ), };