Skip to content
Permalink
Browse files

Use the correct URL when checking for bad port

  • Loading branch information
KiChjang committed Nov 15, 2017
1 parent d5e7137 commit 1c8d04973e99c84d37c0d6447f00d6bab55411d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/net/fetch/methods.rs
@@ -119,7 +119,7 @@ pub fn main_fetch(request: &mut Request,
// TODO: handle upgrade to a potentially secure URL.

// Step 5.
if should_be_blocked_due_to_bad_port(&request.url()) {
if should_be_blocked_due_to_bad_port(&request.current_url()) {
response = Some(Response::network_error(NetworkError::Internal("Request attempted on bad port".into())));
}
// TODO: handle blocking as mixed content.

0 comments on commit 1c8d049

Please sign in to comment.
You can’t perform that action at this time.