From 9c2cd5a84ca185793b4922c1e02de11ca92c0e06 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 2 Oct 2018 14:37:52 -0700 Subject: [PATCH] Support add/overwrite redirect request headers in NavigationURLLoader https://chromium-review.googlesource.com/c/chromium/src/+/1072643 --- atom/browser/net/atom_url_request.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/browser/net/atom_url_request.cc b/atom/browser/net/atom_url_request.cc index 6ff799df91b8..0b51135b26fb 100644 --- a/atom/browser/net/atom_url_request.cc +++ b/atom/browser/net/atom_url_request.cc @@ -267,7 +267,8 @@ void AtomURLRequest::DoCancel() { void AtomURLRequest::DoFollowRedirect() { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); if (request_ && request_->is_redirecting() && redirect_policy_ == "manual") { - request_->FollowDeferredRedirect(); + request_->FollowDeferredRedirect( + base::nullopt /* modified_request_headers */); } }