aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
authorPaul Faria <pauldfaria@gmail.com>2015-05-18 17:28:16 -0400
committerPaul Faria <pauldfaria@gmail.com>2015-05-19 23:54:31 -0400
commit0362d254b8ba111f1f09886b8ec6802ce4c50464 (patch)
tree27c47d69e7b967c399dd74761b9b4aea601a4c3e /components/script/dom/websocket.rs
parent31b709a7c23c0fc7096c72d6024169c1f166f82d (diff)
downloadservo-0362d254b8ba111f1f09886b8ec6802ce4c50464.tar.gz
servo-0362d254b8ba111f1f09886b8ec6802ce4c50464.zip
Removing trailing whitespace
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r--components/script/dom/websocket.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index b4e00457714..5c1ea116c26 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -133,7 +133,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
}
let mut resource = resource.to_owned();
-
+
// 11. If the resulting parsed URL has a non-null query component, then
// append a single U+003F QUESTION MARK character (?) to resource name,
// followed by the value of the query component.
@@ -150,7 +150,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
let mut base_pair = String::new();
base_pair.push_str(joined_pairs.next().unwrap().as_ref());
-
+
resource.push('?');
let query_string = joined_pairs.fold(base_pair, |mut current, next| {
@@ -158,7 +158,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
current.push_str(next.as_ref());
current
});
-
+
resource.push_str(query_string.as_ref());
},
None => (),
@@ -226,7 +226,7 @@ impl WebSocket {
//Do nothing else. Let the close finish.
return Ok(Temporary::from_rooted(ws_root));
}
-
+
let (temp_sender, temp_receiver) = response.begin().split();
let mut other_sender = ws_root.sender.borrow_mut();
let mut other_receiver = ws_root.receiver.borrow_mut();