mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Properly follow the spec in WebSocket::Constructor
This commit is contained in:
parent
bba0be13dd
commit
0bd54b904b
6 changed files with 112 additions and 172 deletions
|
@ -617,7 +617,7 @@ fn should_block_nosniff(request: &Request, response: &Response) -> bool {
|
|||
}
|
||||
|
||||
/// https://fetch.spec.whatwg.org/#block-bad-port
|
||||
fn should_be_blocked_due_to_bad_port(url: &ServoUrl) -> bool {
|
||||
pub fn should_be_blocked_due_to_bad_port(url: &ServoUrl) -> bool {
|
||||
// Step 1 is not applicable, this function just takes the URL directly.
|
||||
|
||||
// Step 2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue