mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 22:55:08 -05:00
Handles HEAD requests as if they always were 204. Fixes #13922.
This commit is contained in:
@@ -614,7 +614,7 @@ jQuery.extend({
|
||||
}
|
||||
|
||||
// if no content
|
||||
if ( status === 204 ) {
|
||||
if ( status === 204 || s.type === "HEAD" ) {
|
||||
statusText = "nocontent";
|
||||
|
||||
// if not modified
|
||||
|
||||
Reference in New Issue
Block a user