{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8396","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8396/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8396/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8396/events","html_url":"https://github.com/yiisoft/yii2/issues/8396","id":75908610,"number":8396,"title":"BaseOAuth::sendRequest  - Can't send raw content","user":{"login":"SnippLeaf","id":4775199,"avatar_url":"https://avatars.githubusercontent.com/u/4775199?v=3","gravatar_id":"","url":"https://api.github.com/users/SnippLeaf","html_url":"https://github.com/SnippLeaf","followers_url":"https://api.github.com/users/SnippLeaf/followers","following_url":"https://api.github.com/users/SnippLeaf/following{/other_user}","gists_url":"https://api.github.com/users/SnippLeaf/gists{/gist_id}","starred_url":"https://api.github.com/users/SnippLeaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnippLeaf/subscriptions","organizations_url":"https://api.github.com/users/SnippLeaf/orgs","repos_url":"https://api.github.com/users/SnippLeaf/repos","events_url":"https://api.github.com/users/SnippLeaf/events{/privacy}","received_events_url":"https://api.github.com/users/SnippLeaf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T09:03:59Z","updated_at":"2015-05-13T09:07:35Z","closed_at":"2015-05-13T09:07:35Z","body":"Problem is with **BaseOAuth** and it's methods `api()` and `sendRequest()`.\r\n Everything was ok until I tried to send clean raw PATCH request with json in it.\r\n\r\n`sendRequest()` allows only array as input params and my content can't be passed.\r\n\r\nAlso I can't override `CURLOPT_POSTFIELDS` with setCurlOptions().\r\n\r\nIf I set \r\n\r\n>    curl_setopt( $curlResource, CURLOPT_POSTFIELDS, '{\"message\":\"raw json\"}' );\r\n\r\ninside `BaseOAuth::sendRequest` with other `curl_cetopt` -  it works."}}