mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix CefURLRequest crash with failing HEAD requests (fixes issue #3226)
This commit is contained in:
committed by
Marshall Greenblatt
parent
c75ebbccec
commit
f6cf7f9ec7
@ -406,6 +406,9 @@ class CefBrowserURLRequest::Context
|
|||||||
DCHECK(CalledOnValidThread());
|
DCHECK(CalledOnValidThread());
|
||||||
DCHECK_EQ(status_, UR_IO_PENDING);
|
DCHECK_EQ(status_, UR_IO_PENDING);
|
||||||
|
|
||||||
|
cleanup_immediately_ = true;
|
||||||
|
|
||||||
|
if (headers) {
|
||||||
response_->SetReadOnly(false);
|
response_->SetReadOnly(false);
|
||||||
response_->SetResponseHeaders(*headers);
|
response_->SetResponseHeaders(*headers);
|
||||||
response_->SetReadOnly(true);
|
response_->SetReadOnly(true);
|
||||||
@ -417,8 +420,10 @@ class CefBrowserURLRequest::Context
|
|||||||
OnDownloadProgress(0);
|
OnDownloadProgress(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_immediately_ = true;
|
|
||||||
OnComplete(true);
|
OnComplete(true);
|
||||||
|
} else {
|
||||||
|
OnComplete(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnRedirect(const net::RedirectInfo& redirect_info,
|
void OnRedirect(const net::RedirectInfo& redirect_info,
|
||||||
|
Reference in New Issue
Block a user