mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Make Response::url private.
This commit is contained in:
parent
c1e1695f66
commit
15b55c3231
3 changed files with 7 additions and 3 deletions
|
@ -687,7 +687,7 @@ fn http_redirect_fetch<UI: 'static + UIProvider>(request: Rc<Request>,
|
|||
Some(&Location(ref location)) => location.clone(),
|
||||
_ => return Response::network_error(NetworkError::Internal("Location header parsing failure".into()))
|
||||
};
|
||||
let response_url = response.actual_response().url.as_ref().unwrap();
|
||||
let response_url = response.actual_response().url().unwrap();
|
||||
let location_url = response_url.join(&*location);
|
||||
let location_url = match location_url {
|
||||
Ok(url) => url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue