Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ajax: Fix #14207. file protocol returns status 0, see #8605.
  • Loading branch information
dmethvin committed Nov 14, 2013
1 parent 1cecf64 commit dce2edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ajax/xhr.js
Expand Up @@ -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 {
Expand Down

0 comments on commit dce2edb

Please sign in to comment.