From 79d9841bce94c0e9abf5e53c845236296a8999de Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 26 Jun 2018 10:32:50 +0200 Subject: Replace hardcoded status headers with calls to http_response_code() Signed-off-by: Morris Jobke --- apps/files_versions/download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_versions') diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php index 77f3e9f0887..65ba245d71d 100644 --- a/apps/files_versions/download.php +++ b/apps/files_versions/download.php @@ -34,7 +34,7 @@ $revision=(int)$_GET['revision']; try { list($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($file); } catch(\OCP\Files\NotFoundException $e) { - header("HTTP/1.1 404 Not Found"); + http_response_code(404); $tmpl = new OCP\Template('', '404', 'guest'); $tmpl->assign('file', ''); $tmpl->printPage(); -- cgit v1.2.3