When network is disabled all uncached requests result in 404
parent
7ef3a31de7
commit
c325112670
|
@ -229,9 +229,7 @@ class HttpDownloader
|
|||
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(), ''));
|
||||
} else {
|
||||
$e = new TransportException('Network disabled, request canceled: '.$url, 499);
|
||||
$e->setStatusCode(499);
|
||||
$reject($e);
|
||||
$resolve(new Response(array('url' => $url), 404, array(), ''));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue