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 ) { ...@@ -84,8 +84,8 @@ jQuery.ajaxTransport(function( options ) {
xhr.abort(); xhr.abort();
} else if ( type === "error" ) { } else if ( type === "error" ) {
complete( complete(
// file protocol always yields status 0, assume 404 // file: protocol always yields status 0; see #8605, #14207
xhr.status || 404, xhr.status,
xhr.statusText xhr.statusText
); );
} else { } 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