gsehub/xblock-mentoring — pull request #3 by mtyaka (2014-05-26 08:18:24+00:00)
Title: Specify contentType in ajax POST request.

Set content type to 'application/json' when POSTing JSON data to the server.

This fixes a bug where any occurence of the '??' string in POSTeda answer data
would get replaced with a random jsonp callback name generated by jQuery.

If content type is set to something other than the default www-form-urlencoded,
jQuery will not mess with the data.

cf. http://bugs.jquery.com/ticket/8417