Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement referrer policy #26430

Merged
merged 1 commit into from May 12, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Implement referrer policy

Fixes #26270
  • Loading branch information
Eijebong committed May 5, 2020
commit c14ab259d04848e9e598325dfd3919d5ca04342d
@@ -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;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.