Revert "When network is disabled all uncached requests result in 404"
This reverts commit c325112670
.
pull/8444/head
parent
7fc0cb021e
commit
eb3e3063b8
|
@ -229,7 +229,9 @@ class HttpDownloader
|
||||||
if (isset($job['request']['options']['http']['header']) && false !== stripos(implode('', $job['request']['options']['http']['header']), 'if-modified-since')) {
|
if (isset($job['request']['options']['http']['header']) && false !== stripos(implode('', $job['request']['options']['http']['header']), 'if-modified-since')) {
|
||||||
$resolve(new Response(array('url' => $url), 304, array(), ''));
|
$resolve(new Response(array('url' => $url), 304, array(), ''));
|
||||||
} else {
|
} else {
|
||||||
$resolve(new Response(array('url' => $url), 404, array(), ''));
|
$e = new TransportException('Network disabled, request canceled: '.$url, 499);
|
||||||
|
$e->setStatusCode(499);
|
||||||
|
$reject($e);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue