mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Let hyper automatically add a host header for HTTP/1
This commit is contained in:
parent
3f663d7ab2
commit
19226c5190
4 changed files with 7 additions and 40 deletions
|
@ -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_H1};
|
||||
use crate::connector::{create_http_client, create_tls_config, ALPN_H2_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_H1),
|
||||
create_tls_config(&certs, ALPN_H2_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_H1),
|
||||
create_tls_config(&certs, ALPN_H2_H1),
|
||||
HANDLE.lock().unwrap().executor(),
|
||||
),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue