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')) {
|
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 {
|
||||||
$e = new TransportException('Network disabled, request canceled: '.$url, 499);
|
$resolve(new Response(array('url' => $url), 404, array(), ''));
|
||||||
$e->setStatusCode(499);
|
|
||||||
$reject($e);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue