diff options
author | Julian Aubourg <j@ubourg.net> | 2013-05-23 02:11:37 +0200 |
---|---|---|
committer | Julian Aubourg <j@ubourg.net> | 2013-05-23 02:39:20 +0200 |
commit | 53095883ef423260270de50b387eb5b17963d333 (patch) | |
tree | efd3cf21c8765e4348548c2c08515164ffbabe43 /src | |
parent | ef31479446ac3ae9bbd11adf34edd18850f347f0 (diff) | |
download | jquery-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.js | 2 |
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 |