aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/websocket_loader.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-03-06 02:37:48 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-03-06 10:36:49 +0100
commit7c1dd54895032ece871d6ec727fbd643b8214331 (patch)
treef59cff6ef1c934e874f4109d9524b9602e30b3f2 /components/net/websocket_loader.rs
parent64fb09ca2d5d077b4d3e0815ee3e094f67b7cf4e (diff)
downloadservo-7c1dd54895032ece871d6ec727fbd643b8214331.tar.gz
servo-7c1dd54895032ece871d6ec727fbd643b8214331.zip
Update to Rust 2016-03-05
Diffstat (limited to 'components/net/websocket_loader.rs')
-rw-r--r--components/net/websocket_loader.rs2
1 files changed, 1 insertions, 1 deletions
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"));
};
};