ajax: Fix #14207. file protocol returns status 0, see #8605.

This commit is contained in:
Dave Methvin 2013-11-13 20:53:04 -05:00
parent 1cecf64e5a
commit dce2edb3a6

View File

@ -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 {