From 1de5328c49e8c438106bf5ad8319ef1c08a96a28 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 Jun 2008 15:38:51 -0400 Subject: [PATCH] correct server error output darcs-hash:20080602193851-84dde-069af77a95bc89271b75b7e0c7ff965fefa1de34.gz --- actions/remotesubscribe.php | 1 + lib/util.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 6ae39dc7ef..e7a9abb180 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 59f0aa10f0..de15d13dec 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(); } -- 2.39.5