]> source.dussan.org Git - nextcloud-server.git/commitdiff
HTTP 1.1 used when giving 403 and 404 errors while attempting to download non-existen... 3941/head
authornoveens <noveen.sachdeva@research.iiit.ac.in>
Fri, 24 Feb 2017 22:16:12 +0000 (03:46 +0530)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 20 Mar 2017 05:14:26 +0000 (23:14 -0600)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/legacy/files.php

index ed3aa7194095522f5e761bc4c13712440619f257..017691805c9c160525b746af2b66c9abd4e8bb05 100644 (file)
@@ -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']) {