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:11:37 +0200
commita2cd89a795067d67d8212a4571991e5d2fb0ea8f (patch)
tree09770d0cb4da93d6e53d3586d656679d10c2f32d /src
parenteabb56c27484cbffd2ce4951f661df83c91e5d7a (diff)
downloadjquery-a2cd89a795067d67d8212a4571991e5d2fb0ea8f.tar.gz
jquery-a2cd89a795067d67d8212a4571991e5d2fb0ea8f.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 d0a8a4f12..8facc17fe 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -614,7 +614,7 @@ jQuery.extend({
}
// if no content
- if ( status === 204 ) {
+ if ( status === 204 || s.type === "HEAD" ) {
statusText = "nocontent";
// if not modified