Skip to content

Commit

Permalink
Disables dataType redirection while selecting transport.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaubourg committed Feb 4, 2011
1 parent 7eba4b7 commit d66cc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ajax.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX
for(; i < length && ( executeOnly || !selection ); i++ ) { for(; i < length && ( executeOnly || !selection ); i++ ) {
selection = list[ i ]( options, originalOptions, jqXHR ); selection = list[ i ]( options, originalOptions, jqXHR );
// If we got redirected to another dataType // If we got redirected to another dataType
// we try there if not done already // we try there if executing only and not done already
if ( typeof selection === "string" ) { if ( typeof selection === "string" ) {
if ( inspected[ selection ] ) { if ( !executeOnly || inspected[ selection ] ) {
selection = undefined; selection = undefined;
} else { } else {
options.dataTypes.unshift( selection ); options.dataTypes.unshift( selection );
Expand Down

0 comments on commit d66cc55

Please sign in to comment.