mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Use the correct URL when checking for bad port
This commit is contained in:
parent
d5e7137b52
commit
1c8d04973e
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ pub fn main_fetch(request: &mut Request,
|
||||||
// TODO: handle upgrade to a potentially secure URL.
|
// TODO: handle upgrade to a potentially secure URL.
|
||||||
|
|
||||||
// Step 5.
|
// 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())));
|
response = Some(Response::network_error(NetworkError::Internal("Request attempted on bad port".into())));
|
||||||
}
|
}
|
||||||
// TODO: handle blocking as mixed content.
|
// TODO: handle blocking as mixed content.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue