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

Header name should be properly capitalized (Content-Type) #23

Open
vlad-ds opened this issue Oct 29, 2022 · 0 comments
Open

Header name should be properly capitalized (Content-Type) #23

vlad-ds opened this issue Oct 29, 2022 · 0 comments

Comments

@vlad-ds
Copy link

vlad-ds commented Oct 29, 2022

"Content-type": "application/json"

Hi, thank you for your website and code!

I am following along with "axios": "^1.1.3". I just spent a painful 2 hours fighting a bug where the Axios service would always POST with an empty body. Thanks to Postman, I realized the header was not being read. It turns out it needs to be properly capitalized:

"Content-Type": "application/json"

And this fixed my 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

No branches or pull requests

1 participant