1
0
Fork 0

Revert "When network is disabled all uncached requests result in 404"

This reverts commit c325112670.
pull/8444/head
Jordi Boggiano 2019-11-14 09:55:57 +01:00
parent 7fc0cb021e
commit eb3e3063b8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@ 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 {
$resolve(new Response(array('url' => $url), 404, array(), ''));
$e = new TransportException('Network disabled, request canceled: '.$url, 499);
$e->setStatusCode(499);
$reject($e);
}
return;
}