mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix the redirected attribute for Response
This commit is contained in:
parent
566147dab3
commit
aa43ce8cf3
5 changed files with 11 additions and 66 deletions
|
@ -310,6 +310,7 @@ impl Response {
|
|||
metadata.https_state = response.https_state;
|
||||
metadata.referrer = response.referrer.clone();
|
||||
metadata.referrer_policy = response.referrer_policy.clone();
|
||||
metadata.redirected = response.actual_response().url_list.len() > 1;
|
||||
metadata
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue