]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct server error output
authorEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:38:51 +0000 (15:38 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:38:51 +0000 (15:38 -0400)
darcs-hash:20080602193851-84dde-069af77a95bc89271b75b7e0c7ff965fefa1de34.gz

actions/remotesubscribe.php
lib/util.php

index 6ae39dc7ef1bf94476c94ae5c84a24b1d47964b8..e7a9abb180ffad3837c40d4b82306488d56a9154 100644 (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;
                }
 
index 59f0aa10f08efce903944b9c52fe5028e1a3b4b2..de15d13deca28a6fec6f969af2dbc19f2666d227 100644 (file)
 # 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();
 }