diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index 8f3179a4e..bce7f9cfe 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -63,12 +63,9 @@ jQuery.ajaxTransport( function( options ) { if ( type === "abort" ) { xhr.abort(); } else if ( type === "error" ) { - complete( { - // File: protocol always yields status 0; see trac-8605, trac-14207 - status: xhr.status, - statusText: xhr.statusText - } ); + // File: protocol always yields status 0; see trac-8605, trac-14207 + complete( xhr ); } else { complete( { status: xhrSuccessStatus[ xhr.status ] || xhr.status,