Skip to content
Permalink
Browse files

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

  • Loading branch information...
dmethvin committed Nov 14, 2013
1 parent 1cecf64 commit dce2edb3a615f9de158607c9f8be83809373940e
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 {

0 comments on commit dce2edb

Please sign in to comment.
You can’t perform that action at this time.