summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/remotesubscribe.php1
-rw-r--r--lib/util.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index 6ae39dc7e..e7a9abb18 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -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;
}
diff --git a/lib/util.php b/lib/util.php
index 59f0aa10f..de15d13de 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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();
}