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

Add application/json Content-Type to requests #75

Open
MikeNice-IB opened this issue Jan 31, 2022 · 0 comments
Open

Add application/json Content-Type to requests #75

MikeNice-IB opened this issue Jan 31, 2022 · 0 comments

Comments

@MikeNice-IB
Copy link

For device request() and fetch() calls that include a JSON body in the request, it would be better to explicitly add a Content-Type of 'application/json' to the headers so that client libraries can automatically validate the request for properly formed JSON. Otherwise browsers such as Chrome or Edge send the request as text/plain.

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

1 participant