]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove additional output as response to updateprofile.
authorAdrian Lang <mail@adrianlang.de>
Sun, 8 Mar 2009 16:09:09 +0000 (17:09 +0100)
committerAdrian Lang <mail@adrianlang.de>
Sun, 8 Mar 2009 16:09:09 +0000 (17:09 +0100)
This output breaks our own response validation and is not part of the OMB spec.

actions/updateprofile.php

index 4751a04ff31726b9002caca41db06099f2cbc3fd..2268c432f17dd4cea52f00a77cb500a28e9cc745 100644 (file)
@@ -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;
         }
     }