Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MarcinGladkowski/678c3e6119f9d31ecd507408df0e4af9 to your computer and use it in GitHub Desktop.
Save MarcinGladkowski/678c3e6119f9d31ecd507408df0e4af9 to your computer and use it in GitHub Desktop.
// application/json !== "application/json"
# Working
POST http://172.18.0.2:8080/api/auth/login
Content-Type: application/json
{
"email": "marcinemail@somepost.com",
"password": "12345"
}
# Not working - the req.body.email is undefined
POST http://172.18.0.2:8080/api/auth/login
Content-Type: "application/json"
{
"email": "marcinemail@somepost.com",
"password": "12345"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment