Skip to content

Commit

Permalink
Disable H2 ALPN.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Dec 13, 2019
1 parent 7d4996f commit 46b155d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/net/resource_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(),
),
};
Expand All @@ -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(),
),
};
Expand Down

0 comments on commit 46b155d

Please sign in to comment.