{"action":"opened","issue":{"url":"https://api.github.com/repos/desmondmorris/node-twitter/issues/292","repository_url":"https://api.github.com/repos/desmondmorris/node-twitter","labels_url":"https://api.github.com/repos/desmondmorris/node-twitter/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/desmondmorris/node-twitter/issues/292/comments","events_url":"https://api.github.com/repos/desmondmorris/node-twitter/issues/292/events","html_url":"https://github.com/desmondmorris/node-twitter/issues/292","id":321801566,"number":292,"title":"Set the “Content-Transfer-Encoding: base64” header on base64 encoded images","user":{"login":"seanpoulter","id":2585460,"avatar_url":"https://avatars0.githubusercontent.com/u/2585460?v=4","gravatar_id":"","url":"https://api.github.com/users/seanpoulter","html_url":"https://github.com/seanpoulter","followers_url":"https://api.github.com/users/seanpoulter/followers","following_url":"https://api.github.com/users/seanpoulter/following{/other_user}","gists_url":"https://api.github.com/users/seanpoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpoulter/subscriptions","organizations_url":"https://api.github.com/users/seanpoulter/orgs","repos_url":"https://api.github.com/users/seanpoulter/repos","events_url":"https://api.github.com/users/seanpoulter/events{/privacy}","received_events_url":"https://api.github.com/users/seanpoulter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-10T03:57:18Z","updated_at":"2018-05-10T03:57:18Z","closed_at":null,"author_association":"NONE","body":"As a developer, I'd like to POST base64 encoded images but we* get an error. By \"we\" I mean, this dev: https://stackoverflow.com/questions/50261958\r\n\r\nFrom the Twitter docs on [Media Best Practices](https://developer.twitter.com/en/docs/media/upload-media/uploading-media/media-best-practices) it says:\r\n\r\n> When posting base64 encoded images, be sure to set the “Content-Transfer-Encoding: base64” on the image part of the message.\r\n\r\nThat's currently not possible based on how the `params` are passed from `post` to `__request` and into `_this.request`. Would you welcome a PR to allow `params.headers` in [the options](https://github.com/desmondmorris/node-twitter/blob/master/lib/twitter.js#L125)? If yes, would you like them to be removed from the query string before all the params used as the query string here: [`options.qs = params`](https://github.com/desmondmorris/node-twitter/blob/296e82ede50ddace34ad64952fdfacfe8b1c65fc/lib/twitter.js#L132)."}}
{"actor":{"display_login":"seanpoulter"}}