core: Set code in header() instead of calling http_response_code()

This commit is contained in:
logmanoriginal 2018-11-05 19:28:47 +01:00
parent 85c34a0960
commit 3031fa406d
3 changed files with 6 additions and 11 deletions

View file

@ -426,8 +426,7 @@ class FacebookBridge extends BridgeAbstract {
// Show captcha filling form to the viewer, proxying the captcha image
$img = base64_encode(getContents($captcha->find('img', 0)->src));
http_response_code(500);
header('Content-Type: text/html');
header('Content-Type: text/html', true, 500);
$message = <<<EOD
<form method="post" action="?{$_SERVER['QUERY_STRING']}">