mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move the SSL client in HttpState
This commit is contained in:
parent
21eafebd37
commit
949a0827e0
4 changed files with 19 additions and 17 deletions
|
@ -532,10 +532,10 @@ fn test_fetch_with_hsts() {
|
|||
|
||||
let ca_file = resources_dir_path().unwrap().join("self_signed_certificate_for_testing.crt");
|
||||
let ssl_client = create_ssl_client(&ca_file);
|
||||
let connector = create_http_connector(ssl_client);
|
||||
let connector = create_http_connector(ssl_client.clone());
|
||||
|
||||
let context = FetchContext {
|
||||
state: Arc::new(HttpState::new()),
|
||||
state: Arc::new(HttpState::new(ssl_client)),
|
||||
user_agent: DEFAULT_USER_AGENT.into(),
|
||||
devtools_chan: None,
|
||||
filemanager: FileManager::new(),
|
||||
|
|
|
@ -56,9 +56,9 @@ struct FetchResponseCollector {
|
|||
fn new_fetch_context(dc: Option<Sender<DevtoolsControlMsg>>) -> FetchContext {
|
||||
let ca_file = resources_dir_path().unwrap().join("certs");
|
||||
let ssl_client = create_ssl_client(&ca_file);
|
||||
let connector = create_http_connector(ssl_client);
|
||||
let connector = create_http_connector(ssl_client.clone());
|
||||
FetchContext {
|
||||
state: Arc::new(HttpState::new()),
|
||||
state: Arc::new(HttpState::new(ssl_client)),
|
||||
user_agent: DEFAULT_USER_AGENT.into(),
|
||||
devtools_chan: dc,
|
||||
filemanager: FileManager::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue