mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
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:
commit
b84aa41c22
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue