aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/files.php
diff options
context:
space:
mode:
authornoveens <noveen.sachdeva@research.iiit.ac.in>2017-02-25 03:46:12 +0530
committerMorris Jobke <hey@morrisjobke.de>2017-03-19 23:14:26 -0600
commit8c27437ac021ede088a38d183c721677c98db451 (patch)
tree1f80b9f5454c9b7042627ebd72669d49c9ff61be /lib/private/legacy/files.php
parent528a903a7b23ea628e6ec2fc9a221821297c0bec (diff)
downloadnextcloud-server-8c27437ac021ede088a38d183c721677c98db451.tar.gz
nextcloud-server-8c27437ac021ede088a38d183c721677c98db451.zip
HTTP 1.1 used when giving 403 and 404 errors while attempting to download non-existent file
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/files.php')
-rw-r--r--lib/private/legacy/files.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/files.php b/lib/private/legacy/files.php
index ed3aa719409..017691805c9 100644
--- a/lib/private/legacy/files.php
+++ b/lib/private/legacy/files.php
@@ -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']) {