mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update to Rust 2016-03-05
This commit is contained in:
parent
64fb09ca2d
commit
7c1dd54895
13 changed files with 108 additions and 113 deletions
|
@ -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"));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue