From dce2edb3a615f9de158607c9f8be83809373940e Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 13 Nov 2013 20:53:04 -0500 Subject: [PATCH] ajax: Fix #14207. file protocol returns status 0, see #8605. --- src/ajax/xhr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index a99fe6930..55d526a41 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -84,8 +84,8 @@ jQuery.ajaxTransport(function( options ) { xhr.abort(); } else if ( type === "error" ) { complete( - // file protocol always yields status 0, assume 404 - xhr.status || 404, + // file: protocol always yields status 0; see #8605, #14207 + xhr.status, xhr.statusText ); } else { -- 2.39.5