Skip to content

Commit 6dccf12

Browse files
author
Jason Moon
committed
Merge pull request #18 from jcruz2us/patch-1
register transport for */default dataType
2 parents ebbe805 + f51cb35 commit 6dccf12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jQuery.XDomainRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!jQuery.support.cors && jQuery.ajaxTransport && window.XDomainRequest) {
1010
var xmlRegEx = /\/xml/i;
1111

1212
// ajaxTransport exists in jQuery 1.5+
13-
jQuery.ajaxTransport('text html xml json', function(options, userOptions, jqXHR){
13+
jQuery.ajaxTransport('* text html xml json', function(options, userOptions, jqXHR){
1414
// XDomainRequests must be: asynchronous, GET or POST methods, HTTP or HTTPS protocol, and same scheme as calling page
1515
if (options.crossDomain && options.async && getOrPostRegEx.test(options.type) && httpRegEx.test(options.url) && sameSchemeRegEx.test(options.url)) {
1616
var xdr = null;

0 commit comments

Comments
 (0)