Batch Request not populating data in response for Firefox

Jan 29, 2014 at 11:32 PM
Edited Jan 30, 2014 at 1:13 AM
Hi guys,

I am having trouble executing an OData batch request in Firefox 26. In Chrome the request works fine, but in Firefox there is no data attached to the response.

xmlHttpRequest returns a response with content-type:'multipart/mixed' in Chrome, while in Firefox it is 'application/json'. This is my only clue, but really I'm not sure what's going on.

Here is the code I am using to send the request:
                    requestUri: "/api/v1/wth/$batch",
                    method: "POST",
                    headers: {},
                    data: {
                        __batchRequests: [
                function (data, response) {
                    // "data is undefined"
                    var responseJson = data.__batchResponses;
                    // etc... 
I've tried setting Content-Type to 'multipart/mixed' in the header, but it doesn't seem to make a difference.

Any advice on this issue is much appreciated. Thanks!