Support add/overwrite redirect request headers in NavigationURLLoader

https://chromium-review.googlesource.com/c/chromium/src/+/1072643
This commit is contained in:
Jeremy Apthorp 2018-10-02 14:37:52 -07:00
parent 18128a1582
commit 9c2cd5a84c

View file

@ -267,7 +267,8 @@ void AtomURLRequest::DoCancel() {
void AtomURLRequest::DoFollowRedirect() { void AtomURLRequest::DoFollowRedirect() {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO); DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
if (request_ && request_->is_redirecting() && redirect_policy_ == "manual") { if (request_ && request_->is_redirecting() && redirect_policy_ == "manual") {
request_->FollowDeferredRedirect(); request_->FollowDeferredRedirect(
base::nullopt /* modified_request_headers */);
} }
} }