correct server error output

darcs-hash:20080602193851-84dde-069af77a95bc89271b75b7e0c7ff965fefa1de34.gz
This commit is contained in:
Evan Prodromou 2008-06-02 15:38:51 -04:00
parent bde49e2c52
commit 1de5328c49
2 changed files with 3 additions and 1 deletions

View File

@ -277,6 +277,7 @@ class RemotesubscribeAction extends Action {
if ($result->status != 200) {
common_debug('remotesubscribe.php - request token status = "' . $result->status . '"');
common_debug('remotesubscribe.php - request token body = "' . $result->body . '"');
return NULL;
}

View File

@ -22,10 +22,11 @@
# Show a server error
function common_server_error($msg) {
header('Status: 500 Server Error');
header('HTTP/1.1 500 Server Error');
header('Content-type: text/plain');
print $msg;
print "\n";
exit();
}