X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2Ftwitteroauth.php;h=24e831a9244b517834aa400b4064af7774e390f5;hb=54d598ce7c66308dbcf5d5aa0b14b3aec73885a8;hp=009ad56bd4a3b76a7048dafd7b2724e2118ce7ef;hpb=86eec2e0faf9f2029f1decbe0676c8fed88c1b65;p=friendica.git diff --git a/library/twitteroauth.php b/library/twitteroauth.php index 009ad56bd4..24e831a924 100644 --- a/library/twitteroauth.php +++ b/library/twitteroauth.php @@ -184,6 +184,8 @@ class TwitterOAuth { switch ($method) { case 'GET': return $this->http($request->to_url(), 'GET'); + case 'UPLOAD': + return $this->http($request->get_normalized_http_url(), 'POST', $request->to_postdata(true)); default: return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata()); }