mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
a237e41b89
commit
c14ab259d0
1 changed files with 7 additions and 1 deletions
|
@ -817,7 +817,13 @@ pub fn http_redirect_fetch(
|
|||
request.url_list.push(location_url);
|
||||
|
||||
// Step 14
|
||||
// TODO implement referrer policy
|
||||
if let Some(referrer_policy) = response
|
||||
.actual_response()
|
||||
.headers
|
||||
.typed_get::<headers::ReferrerPolicy>()
|
||||
{
|
||||
request.referrer_policy = Some(referrer_policy.into());
|
||||
}
|
||||
|
||||
// Step 15
|
||||
let recursive_flag = request.redirect_mode != RedirectMode::Manual;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue