diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-20 01:53:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 01:53:05 -0600 |
commit | 85d7e600c14c70ca9ef5772d3ab208c334e3a8e5 (patch) | |
tree | 1694d72d7bec476e784a7bd7e487f9b3ee06639d /lib | |
parent | e446d223597d73c8444bb39b0acb927a1779c245 (diff) | |
parent | 8c27437ac021ede088a38d183c721677c98db451 (diff) | |
download | nextcloud-server-85d7e600c14c70ca9ef5772d3ab208c334e3a8e5.tar.gz nextcloud-server-85d7e600c14c70ca9ef5772d3ab208c334e3a8e5.zip |
Merge pull request #3941 from nextcloud/downstream-27254
HTTP 1.1 used when giving 403 and 404 errors while attempting to down…
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/files.php | 4 |
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']) { |