rizidoro
rizidoro

Reputation: 13428

Payload Request on POST with $http

Im trying to do a $http request with POST method, but Angular is sending data with Request Payload instead of Post Params. I already saw a topic to change the headers to x-www-form-urlencoded but that not solve my problem. I created a codepen that show my problem: http://codepen.io/rizidoro/pen/afktd

Take a look at the Developer Toolkit on Chrome. Angular is sending data with Request Payload!

What I'm doing wrong here?

Upvotes: 0

Views: 4697

Answers (1)

Caio Cunha
Caio Cunha

Reputation: 23394

The only problem is that Content-type should be changed to Content-Type. Seems to be some case-sensitiveness bug. I'll investigate and try to post it back.

Upvotes: 1

Related Questions