Skip to content
Snippets Groups Projects
Commit 85d7e600 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #3941 from nextcloud/downstream-27254

HTTP 1.1 used when giving 403 and 404 errors while attempting to down…
parents e446d223 8c27437a
No related branches found
No related tags found
No related merge requests found
......@@ -264,12 +264,12 @@ class OC_Files {
if (\OC\Files\Filesystem::isReadable($filename)) {
self::sendHeaders($filename, $name, $rangeArray);
} elseif (!\OC\Files\Filesystem::file_exists($filename)) {
header("HTTP/1.0 404 Not Found");
header("HTTP/1.1 404 Not Found");
$tmpl = new OC_Template('', '404', 'guest');
$tmpl->printPage();
exit();
} else {
header("HTTP/1.0 403 Forbidden");
header("HTTP/1.1 403 Forbidden");
die('403 Forbidden');
}
if (isset($params['head']) && $params['head']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment