diff options
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public.php b/public.php index c81a6b5a960..5d46f4970dc 100644 --- a/public.php +++ b/public.php @@ -45,7 +45,7 @@ try { $pathInfo = $request->getPathInfo(); if (!$pathInfo && $request->getParam('service', '') === '') { - header('HTTP/1.0 404 Not Found'); + http_response_code(404); exit; } elseif ($request->getParam('service', '')) { $service = $request->getParam('service', ''); @@ -55,7 +55,7 @@ try { } $file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service)); if ($file === null) { - header('HTTP/1.0 404 Not Found'); + http_response_code(404); exit; } |