X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=library%2Ftwitteroauth.php;h=24e831a9244b517834aa400b4064af7774e390f5;hb=621a77b275168be670cf0a59f9f0dc7b43eb3e6d;hp=009ad56bd4a3b76a7048dafd7b2724e2118ce7ef;hpb=b94bd93b0ba82ddbf38d7b705b4f62b1714fad73;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()); }