mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add API base url method to global objects
This commit is contained in:
parent
32e53b80e2
commit
c75079eff3
4 changed files with 12 additions and 11 deletions
|
@ -352,7 +352,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
}
|
||||
|
||||
// Step 2
|
||||
let base = self.global().r().get_url();
|
||||
let base = self.global().r().api_base_url();
|
||||
// Step 6
|
||||
let mut parsed_url = match base.join(&url.0) {
|
||||
Ok(parsed) => parsed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue