aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/response.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-12-19 19:43:26 +0100
committerMs2ger <Ms2ger@gmail.com>2016-12-19 19:43:26 +0100
commit75be03041cc0581eb4c146bc50c64c9cffbc8d8b (patch)
treed5acc3c0ae57df81f2560293955524e4a92594d7 /components/script/dom/response.rs
parentfbed4d23d67508c08fb177b88fd7458bcd046a55 (diff)
downloadservo-75be03041cc0581eb4c146bc50c64c9cffbc8d8b.tar.gz
servo-75be03041cc0581eb4c146bc50c64c9cffbc8d8b.zip
Use the API base URL in Fetch APIs.
Diffstat (limited to 'components/script/dom/response.rs')
-rw-r--r--components/script/dom/response.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/response.rs b/components/script/dom/response.rs
index 06a066d410c..1d9d62c079a 100644
--- a/components/script/dom/response.rs
+++ b/components/script/dom/response.rs
@@ -149,8 +149,7 @@ impl Response {
// https://fetch.spec.whatwg.org/#dom-response-redirect
pub fn Redirect(global: &GlobalScope, url: USVString, status: u16) -> Fallible<Root<Response>> {
// Step 1
- // TODO: `entry settings object` is not implemented in Servo yet.
- let base_url = global.get_url();
+ let base_url = global.api_base_url();
let parsed_url = base_url.join(&url.0);
// Step 2