Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Accept header to JSON #350

Open
tony-gutierrez opened this issue Oct 4, 2018 · 3 comments · May be fixed by #362
Open

Default Accept header to JSON #350

tony-gutierrez opened this issue Oct 4, 2018 · 3 comments · May be fixed by #362

Comments

@tony-gutierrez
Copy link

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
Copy link

tanmaiaccion commented Feb 15, 2019

+1 for this request

@tanmaiaccion
Copy link

@tony-gutierrez check this workaround, it works.
#312 (comment)

@sunnysmane
Copy link

sunnysmane commented Aug 11, 2021

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.

@ypetya ypetya linked a pull request Oct 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants