diff --git a/lib/twitter.js b/lib/twitter.js index 9540857e..217a72ce 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -251,7 +251,7 @@ Twitter.prototype._buildReqOpts = function (method, path, params, isStreaming, c reqOpts.url = endpoints.REST_ROOT + path + '.json'; } - if (FORMDATA_PATHS.indexOf(path) !== -1) { + if (FORMDATA_PATHS.indexOf(path) !== -1 && method === 'POST') { reqOpts.headers['Content-type'] = 'multipart/form-data'; reqOpts.form = finalParams; // set finalParams to empty object so we don't append a query string