ciaranj / node-oauth

OAuth wrapper for node.js
MIT License
2.44k stars 662 forks source link

Default Accept header to JSON #350

Open tony-gutierrez opened 6 years ago

tony-gutierrez commented 6 years ago

It would probably be nice to add a default header:

Accept: 'application/json, text/json'

so that you will almost always get JSON back.

tanmaiaccion commented 5 years ago

+1 for this request

tanmaiaccion commented 5 years ago

@tony-gutierrez check this workaround, it works. https://github.com/ciaranj/node-oauth/pull/312#issuecomment-359614640

sunnysmane commented 3 years ago

Yes, it will be good if content type option is available in GET method as it is available in PUT and POST method.

Thanks @tanmaiaccion for the work around. It worked.