Fix the redirected attribute for Response

This commit is contained in:
Bastien Orivel 2019-12-21 15:09:53 +01:00
parent 566147dab3
commit aa43ce8cf3
5 changed files with 11 additions and 66 deletions

View file

@ -638,6 +638,8 @@ pub struct Metadata {
pub referrer_policy: Option<ReferrerPolicy>,
/// Performance information for navigation events
pub timing: Option<ResourceFetchTiming>,
/// True if the request comes from a redirection
pub redirected: bool,
}
impl Metadata {
@ -655,6 +657,7 @@ impl Metadata {
referrer: None,
referrer_policy: None,
timing: None,
redirected: false,
}
}