AngularJS $resource response being returned as array of characters from ExpressJS
问题 I have an expressjs api that my angularJS $resource objects talk to. I have sent a post request with postman (a chrome tool for testing REST apis) and the raw data in the response is: "submitted". The headers: Connection →keep-alive Content-Length →9 Content-Type →text/html; charset=utf-8 Date →Sun, 02 Feb 2014 12:02:20 GMT X-Powered-By →Express When I log out my response in angular I get the following: Resource 0: "S" 1: "u" 2: "b" 3: "m" 4: "i" 5: "t" 6: "t" 7: "e" 8: "d" $promise: