Handles HEAD requests as if they always were 204. Fixes #13922.

This commit is contained in:
Julian Aubourg
2013-05-23 02:11:37 +02:00
parent eabb56c274
commit a2cd89a795
2 changed files with 24 additions and 1 deletions

View File

@@ -614,7 +614,7 @@ jQuery.extend({
}
// if no content
if ( status === 204 ) {
if ( status === 204 || s.type === "HEAD" ) {
statusText = "nocontent";
// if not modified