[TIMOB-942] Problems sending JSON requests using POST
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | ios, ipad, json, mobile, post |
Reporter | P. Barrett Little |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:39:45.000+0000 |
Updated | 2011-04-17T01:54:44.000+0000 |
Description
Hi,
We are experiencing an issue while submitting POST requests as application/json. The content type received is always x-www-form-urlencoded, rather than application/json, regardless of the content type defined with setRequestHeader.
xhr.setRequestHeader("Content-Type","application/json; charset=utf-8");
The content type is submitted correctly with GET requests. Please let me know if I can provide any additional information to help.
Regards,
Barrett
i have fixed this on head.