aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/methods.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-03-23 17:02:52 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2017-03-24 09:43:14 +0100
commit0bd54b904bf8b926afb60f4be0554bc37b30464b (patch)
tree1489467a0fd3fbf41d54fecae20398d0d1f6909f /components/net/fetch/methods.rs
parentbba0be13dd07116d02fd0f2e6d73d1ecb8e952bb (diff)
downloadservo-0bd54b904bf8b926afb60f4be0554bc37b30464b.tar.gz
servo-0bd54b904bf8b926afb60f4be0554bc37b30464b.zip
Properly follow the spec in WebSocket::Constructor
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r--components/net/fetch/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index b0a06de064a..90d1feed2d4 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -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.