forked from GNUsocial/gnu-social
correct server error output
darcs-hash:20080602193851-84dde-069af77a95bc89271b75b7e0c7ff965fefa1de34.gz
This commit is contained in:
parent
bde49e2c52
commit
1de5328c49
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user