servo: Merge #14632 - Use the API base URL in Fetch APIs (from servo:multi-global-fetch); r=jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 89cdcbc420d82aade20a2ee704fdea295dec437a
This commit is contained in:
Ms2ger 2016-12-22 16:40:53 -08:00
Родитель 99a67d7521
Коммит f691662a4d
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -92,8 +92,7 @@ impl Request {
let mut fallback_credentials: Option<NetTraitsRequestCredentials> = None;
// Step 4
// TODO: `entry settings object` is not implemented in Servo yet.
let base_url = global.get_url();
let base_url = global.api_base_url();
match input {
// Step 5

Просмотреть файл

@ -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