Skip to content

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

Description

@vlad-ds

"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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions