diff options
author | Adrian Lang <mail@adrianlang.de> | 2009-03-08 17:09:09 +0100 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2009-03-08 17:09:09 +0100 |
commit | 6ab9d6b14016cf97fe1a31d89591e1a0e919c8a7 (patch) | |
tree | c1de9aa10728e0df0fbcc5470288d55d6f012849 | |
parent | 4c8c9bb9dfe962e0d34f1acb2df20ddd2728920c (diff) |
Remove additional output as response to updateprofile.
This output breaks our own response validation and is not part of the OMB spec.
-rw-r--r-- | actions/updateprofile.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php index 4751a04ff..2268c432f 100644 --- a/actions/updateprofile.php +++ b/actions/updateprofile.php @@ -34,6 +34,8 @@ class UpdateprofileAction extends Action $server = omb_oauth_server(); list($consumer, $token) = $server->verify_request($req); if ($this->update_profile($req, $consumer, $token)) { + header('HTTP/1.1 200 OK'); + header('Content-type: text/plain'); print "omb_version=".OMB_VERSION_01; } } catch (OAuthException $e) { @@ -173,10 +175,6 @@ class UpdateprofileAction extends Action return false; } } - header('HTTP/1.1 200 OK'); - header('Content-type: text/plain'); - print 'Updated profile'; - print "\n"; return true; } } |