Replace hardcoded status headers with calls to http_response_code()

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke
2018-06-26 10:32:50 +02:00
parent d9d557a5ef
commit 79d9841bce
12 changed files with 29 additions and 83 deletions
+1 -1
View File
@@ -59,6 +59,6 @@ try {
}
} catch (Exception $ex) {
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
http_response_code(500);
\OC::$server->getLogger()->logException($ex, ['app' => 'remote']);
}