Auto merge of #6154 - Nashenas88:websocket-parse-url-typo, r=jdm

This is a really small typo fix for an issue I worked on recently.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6154)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-21 06:59:06 -05:00
commit b84aa41c22

View file

@ -84,7 +84,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
};
let host = parsed_url.host().unwrap().serialize(); // Step 6
let port = parsed_url.port_or_default().unwrap(); // Step 7
let port = parsed_url.port_or_default().unwrap(); // Steps 7 and 8
let mut resource = parsed_url.path().unwrap().connect("/"); // Step 9
if resource.is_empty() {
resource = "/".to_owned(); // Step 10