We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 273c38d + 1e1e056 commit 925b570Copy full SHA for 925b570
jQuery.XDomainRequest.js
@@ -39,7 +39,7 @@ if (!jQuery.support.cors && window.XDomainRequest) {
39
try {
40
if (userType === 'json') {
41
42
- responses.json = JSON.parse(xdr.responseText);
+ responses.json = jQuery.parseJSON(xdr.responseText);
43
} catch(e) {
44
status.code = 500;
45
status.message = 'parseerror';
@@ -83,4 +83,4 @@ if (!jQuery.support.cors && window.XDomainRequest) {
83
};
84
}
85
});
86
-}
+}
0 commit comments