aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulian Aubourg <j@ubourg.net>2013-05-23 02:11:37 +0200
committerJulian Aubourg <j@ubourg.net>2013-05-23 02:39:20 +0200
commit53095883ef423260270de50b387eb5b17963d333 (patch)
treeefd3cf21c8765e4348548c2c08515164ffbabe43 /src
parentef31479446ac3ae9bbd11adf34edd18850f347f0 (diff)
downloadjquery-53095883ef423260270de50b387eb5b17963d333.tar.gz
jquery-53095883ef423260270de50b387eb5b17963d333.zip
Handles HEAD requests as if they always were 204. Fixes #13922.
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 4478034d9..540a904b2 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -615,7 +615,7 @@ jQuery.extend({
}
// if no content
- if ( status === 204 ) {
+ if ( status === 204 || s.type === "HEAD" ) {
statusText = "nocontent";
// if not modified