Adding in a missed algorithm step number in the comments.

This commit is contained in:
Paul Faria 2015-05-20 22:17:07 -04:00
parent 7ae5d1129f
commit d4be93613b

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