Add ability to stop CefURLRequest on redirect (issue #1329)

This commit is contained in:
Mike Wiedenbauer
2018-04-10 13:04:57 -04:00
committed by Marshall Greenblatt
parent c3f5e6463c
commit 90863b8c5d
14 changed files with 220 additions and 5 deletions

View File

@@ -356,6 +356,9 @@ class CefBrowserURLRequest::Context
CefResponseImpl* responseImpl =
static_cast<CefResponseImpl*>(response_.get());
responseImpl->SetURL(fetcher_->GetURL().spec());
responseImpl->SetStatus(fetcher_->GetResponseCode());
net::HttpResponseHeaders* headers = fetcher_->GetResponseHeaders();
if (headers)
responseImpl->SetResponseHeaders(*headers);