aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-11-13 20:53:04 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-11-13 20:53:04 -0500
commitdce2edb3a615f9de158607c9f8be83809373940e (patch)
treebd5be4f259b3c030943aad239ff8532868f489ec /src
parent1cecf64e5aa415367a7dae0b55c2dd17b591442d (diff)
downloadjquery-dce2edb3a615f9de158607c9f8be83809373940e.tar.gz
jquery-dce2edb3a615f9de158607c9f8be83809373940e.zip
ajax: Fix #14207. file protocol returns status 0, see #8605.
Diffstat (limited to 'src')
-rw-r--r--src/ajax/xhr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index a99fe6930..55d526a41 100644
--- a/src/ajax/xhr.js
+++ b/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 {