X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FOAuth1.php;h=994962a8587a1a0e0be72d8a246502e9dedfc90f;hb=91ff025333970ffd58fbd20e8d6fd29f954f5baf;hp=53b905e7714a5cbdc3d8effc40157d554958ddb5;hpb=03c489150c9b56695bd8233a7aba2c6a29b15a67;p=friendica.git diff --git a/library/OAuth1.php b/library/OAuth1.php index 53b905e771..994962a858 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -423,8 +423,11 @@ class OAuthRequest { /** * builds the data one would send in a POST request */ - public function to_postdata() { - return OAuthUtil::build_http_query($this->parameters); + public function to_postdata($raw = false) { + if ($raw) + return($this->parameters); + else + return OAuthUtil::build_http_query($this->parameters); } /**