Commit dce2edb3 authored by Dave Methvin's avatar Dave Methvin

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

parent 1cecf64e
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment