зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
99a67d7521
Коммит
f691662a4d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче