aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-03-29 17:47:10 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-03-29 19:17:27 +0200
commitd022535f9c98926c39dddafba37d48ee317a81ea (patch)
tree8a15c23d6dede697a7c6ad2ae8cdac12601092db /components/net_traits/lib.rs
parent3ed32f80780152806b38f3a16634f7d1922fd129 (diff)
downloadservo-d022535f9c98926c39dddafba37d48ee317a81ea.tar.gz
servo-d022535f9c98926c39dddafba37d48ee317a81ea.zip
Make the WebSocket handshake ourselves to ease switching libs
We need to switch to tungstenite to finally update openssl, this commit rewrites the whole websocket infrastructure to properly follow the Fetch spec and to make switching to a different websocket library easier.
Diffstat (limited to 'components/net_traits/lib.rs')
-rw-r--r--components/net_traits/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs
index f29f803ef66..ab0121a119c 100644
--- a/components/net_traits/lib.rs
+++ b/components/net_traits/lib.rs
@@ -540,7 +540,7 @@ impl NetworkError {
NetworkError::Internal(error.description().to_owned())
}
- fn from_ssl_error(url: &ServoUrl, error: &SslError) -> Self {
+ pub fn from_ssl_error(url: &ServoUrl, error: &SslError) -> Self {
if let SslError::OpenSslErrors(ref errors) = *error {
if errors.iter().any(is_cert_verify_error) {
let mut error_report = vec![format!("ssl error ({}):", openssl::version::version())];