Skip to content
Permalink
Browse files

Disables dataType redirection while selecting transport.

  • Loading branch information...
jaubourg committed Feb 4, 2011
1 parent 7eba4b7 commit d66cc553167c6b00d19aa62a4dd1e9affb20d395
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ajax.js
@@ -113,9 +113,9 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX
for(; i < length && ( executeOnly || !selection ); i++ ) {
selection = list[ i ]( options, originalOptions, jqXHR );
// 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 ( inspected[ selection ] ) {
if ( !executeOnly || inspected[ selection ] ) {
selection = undefined;
} else {
options.dataTypes.unshift( selection );

0 comments on commit d66cc55

Please sign in to comment.
You can’t perform that action at this time.