diff options
Diffstat (limited to 'components/net')
-rw-r--r-- | components/net/fetch/cors_cache.rs | 2 | ||||
-rw-r--r-- | components/net/websocket_loader.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/cors_cache.rs b/components/net/fetch/cors_cache.rs index c1f55dce252..63c62f37c23 100644 --- a/components/net/fetch/cors_cache.rs +++ b/components/net/fetch/cors_cache.rs @@ -29,7 +29,7 @@ pub enum HeaderOrMethod { impl HeaderOrMethod { fn match_header(&self, header_name: &str) -> bool { match *self { - HeaderOrMethod::HeaderData(ref s) => s.eq_ignore_ascii_case(header_name), + HeaderOrMethod::HeaderData(ref s) => (&**s).eq_ignore_ascii_case(header_name), _ => false } } diff --git a/components/net/websocket_loader.rs b/components/net/websocket_loader.rs index ab576077cf8..64408d3e9cf 100644 --- a/components/net/websocket_loader.rs +++ b/components/net/websocket_loader.rs @@ -51,7 +51,7 @@ fn establish_a_websocket_connection(resource_url: &Url, net_url: (Host, String, { let protocol_in_use = unwrap_websocket_protocol(response.protocol()); if let Some(protocol_name) = protocol_in_use { - if !protocols.is_empty() && !protocols.iter().any(|p| p.eq_ignore_ascii_case(protocol_name)) { + if !protocols.is_empty() && !protocols.iter().any(|p| (&**p).eq_ignore_ascii_case(protocol_name)) { return Err(WebSocketError::ProtocolError("Protocol in Use not in client-supplied protocol list")); }; }; |