I am trying to set the header for a single post request using restangular but the request is being sent as plain text instead of json. I have read the documentation here as wel
Don't pass two empty objects, try passing:
.post(pip, undefined, undefined, {'Content-Type':'application/json'})
Or even .customPOST() instead of .post().
.customPOST()
.post()