Remove DCHECK in InterceptedRequest::OnReceiveRedirect (fixes issue #2917)

This commit is contained in:
Marshall Greenblatt 2020-04-20 12:38:31 -04:00
parent 245bc9bfab
commit 27257d0288
1 changed files with 4 additions and 3 deletions

View File

@ -475,9 +475,10 @@ void InterceptedRequest::OnReceiveRedirect(
if (current_request_uses_header_client_) {
// Use the headers we got from OnHeadersReceived as that'll contain
// Set-Cookie if it existed. May be null for synthetic redirects.
DCHECK(current_headers_);
current_response_->headers = current_headers_;
current_headers_ = nullptr;
if (current_headers_) {
current_response_->headers = current_headers_;
current_headers_ = nullptr;
}
} else {
needs_callback = true;
}