From a16ab31f480ad46a2eb3b924e9d4c7bd696f5098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Mon, 2 Mar 2020 22:12:34 +0100 Subject: [PATCH] WIP test size reduction --- src/ajax/xhr.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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,