Ticket #925 - make verify_credentials return 'Authorized' if no return type specified

This commit is contained in:
Zach Copley 2009-02-22 17:01:41 -08:00
parent b9f3e1e01e
commit cdab8d55a9

View File

@ -26,7 +26,6 @@ class TwitapiaccountAction extends TwitterapiAction
function verify_credentials($args, $apidata)
{
if ($apidata['content-type'] == 'xml') {
header('Content-Type: application/xml; charset=utf-8');
print '<authorized>true</authorized>';
@ -34,9 +33,9 @@ class TwitapiaccountAction extends TwitterapiAction
header('Content-Type: application/json; charset=utf-8');
print '{"authorized":true}';
} else {
common_user_error(_('API method not found!'), $code=404);
header('Content-Type: text/html; charset=utf-8');
print 'Authorized';
}
}
function end_session($args, $apidata)