mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
servo: Merge #6154 - Adding in a missed algorithm step number in the comments (from Nashenas88:websocket-parse-url-typo); r=jdm
This is a really small typo fix for an issue I worked on recently. Source-Repo: https://github.com/servo/servo Source-Revision: b84aa41c229a18fa77f4ae815fc0166cb3fbb1b6
This commit is contained in:
parent
de0de69bad
commit
e75d4a7ceb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user