diff options
Diffstat (limited to 'components/net/connector.rs')
-rw-r--r-- | components/net/connector.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/net/connector.rs b/components/net/connector.rs index 59858947930..4040c929dc5 100644 --- a/components/net/connector.rs +++ b/components/net/connector.rs @@ -29,7 +29,9 @@ const DEFAULT_CIPHERS: &'static str = concat!( pub fn create_http_connector() -> Arc<Pool<Connector>> { let mut context = SslContext::new(SslMethod::Sslv23).unwrap(); - context.set_CA_file(&resources_dir_path().join("certs")).unwrap(); + context.set_CA_file(&resources_dir_path() + .expect("Need certificate file to make network requests") + .join("certs")).unwrap(); context.set_cipher_list(DEFAULT_CIPHERS).unwrap(); context.set_options(SSL_OP_NO_SSLV2 | SSL_OP_NO_SSLV3 | SSL_OP_NO_COMPRESSION); let connector = HttpsConnector::new(ServoSslClient { |