Modified swift handling to explicitly set 404 responses to false
This commit is contained in:
parent
41f1feaf23
commit
8783eb99f7
|
@ -323,7 +323,8 @@ class Swift extends \OC\Files\Storage\Common {
|
||||||
$streamInterface->rewind();
|
$streamInterface->rewind();
|
||||||
$stream = $streamInterface->getStream();
|
$stream = $streamInterface->getStream();
|
||||||
stream_context_set_option($stream, 'swift','content', $streamInterface);
|
stream_context_set_option($stream, 'swift','content', $streamInterface);
|
||||||
if(is_resource($stream)) {
|
if(!strrpos($streamInterface
|
||||||
|
->getMetaData('wrapper_data')[0], '404 Not Found')) {
|
||||||
return $stream;
|
return $stream;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue