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

Should p-s-a default to 'application/json' in _R methods? #4

Open
AlexMouton opened this issue Oct 17, 2019 · 1 comment
Open

Should p-s-a default to 'application/json' in _R methods? #4

AlexMouton opened this issue Oct 17, 2019 · 1 comment

Comments

@AlexMouton
Copy link

Hi Dario
Just another thought. I was a little surprised that I had to set this header myself, when I just wanted to add Authorization.

Thanks
A

@dariooddenino
Copy link
Owner

Hello Alex!
The Accept (MediaType "application/json") is already in there in the default request.
If you pass your own headers the default one gets overwritten.

I'm not sure it would be a great idea to force again that header on top afterwards, as it would make it impossible to accept different meda types.

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

No branches or pull requests

2 participants