enyojs/enyo — pull request #192 by GlitchTech (2012-12-07 16:03:37+00:00)
Title: Ajax POST body fix

An ajax request with a method type of POST doesn't send post data (when not using the postBody parameter). The parameters contained in go are appended to the URL.

This can be seen using firebug or chrome inspect. The network information shows the request is being sent as a post request but the post data is empty. Instead the URL has been modified when using an object as the post data.

Example Issue Fiddles:
http://jsfiddle.net/J2f88/ -- Uses object as query parameters
http://jsfiddle.net/J2f88/1/ -- Uses string as query parameters

Note: For the fiddle, the data will still return because the remote server doesn't care if data is in post or get.

The change on line 81 of Ajax.js fixes this issue.

Enyo-DCO-1.1-Signed-off-by: Matthew Schott