aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/methods.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-11-15 16:08:49 -0600
committerGitHub <noreply@github.com>2017-11-15 16:08:49 -0600
commitc9884604e974937c45ca3dfc5afb23079536fd41 (patch)
treef7d0d6ee92d50731be3c0b8b01e1c5b9fa6a2cde /components/net/fetch/methods.rs
parent8724bc0c73dcb96237298cf3dc9be944108bcd35 (diff)
parent1c8d04973e99c84d37c0d6447f00d6bab55411d6 (diff)
downloadservo-c9884604e974937c45ca3dfc5afb23079536fd41.tar.gz
servo-c9884604e974937c45ca3dfc5afb23079536fd41.zip
Auto merge of #18882 - KiChjang:fix-origin, r=jdm
Use the correct origin in fetch Fixes #18147. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18882) <!-- Reviewable:end -->
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 2c2bd877eae..f43cd591636 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -118,7 +118,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.