Fix crash when loading a file:// URL (fixes issue #2670)
This commit is contained in:
parent
7e742f6e1f
commit
ab6fd322d1
|
@ -829,7 +829,8 @@ void InterceptedRequest::ContinueToResponseStarted(int error_code) {
|
||||||
|
|
||||||
std::string location;
|
std::string location;
|
||||||
const bool is_redirect = redirect_url.is_valid() ||
|
const bool is_redirect = redirect_url.is_valid() ||
|
||||||
current_response_.headers->IsRedirect(&location);
|
(current_response_.headers &&
|
||||||
|
current_response_.headers->IsRedirect(&location));
|
||||||
if (stream_loader_ && is_redirect) {
|
if (stream_loader_ && is_redirect) {
|
||||||
// Redirecting from OnReceiveResponse generally isn't supported by the
|
// Redirecting from OnReceiveResponse generally isn't supported by the
|
||||||
// NetworkService, so we can only support it when using a custom loader.
|
// NetworkService, so we can only support it when using a custom loader.
|
||||||
|
|
Loading…
Reference in New Issue