node-oauth icon indicating copy to clipboard operation
node-oauth copied to clipboard

Remove content-type from GET requests

Open ryanackley opened this issue 9 years ago • 2 comments

The content type is unsettable from oauth.get requests so it ends up being "application/x-www-form-urlencoded". I'm trying to access a rest endpoint and this content-type is causing a 415 error "Unsupported Media Type".

ryanackley avatar Sep 11 '16 21:09 ryanackley

when this will be merged? +1

leonkyr avatar May 15 '17 13:05 leonkyr

For anyone else finding this, I ended up just using _performSecureRequest directly.

consumer._performSecureRequest( token, secret, "GET", url, "", null, contentType, callback)

relates to #281, #182, #183, #331, #333, #136, #284

mikeblakeney avatar Jan 22 '18 23:01 mikeblakeney