Use http_response_code to set response code

Fixes #12646

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-10-18 09:17:55 +02:00
parent d4c3d283ca
commit 978538dce8

View File

@ -12,7 +12,7 @@ if (! defined('PHPMYADMIN')) {
}
if (! defined('TESTSUITE')) {
header('HTTP/1.1 500 Internal Server Error');
http_response_code(500);
header('Content-Type: text/html; charset=utf-8');
}
?>