Disables dataType redirection while selecting transport.
This commit is contained in:
parent
7eba4b76df
commit
d66cc55316
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue