mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Ref 27b22f4e
: Don't try to outsmart Apache
This commit is contained in:
parent
27b22f4ef5
commit
8dc0f2ea84
@ -246,7 +246,9 @@ module( "ajax", {
|
||||
url: url("data/headers.php?keys=content-type"),
|
||||
contentType: false,
|
||||
success: function( data ) {
|
||||
strictEqual( data, "", "Test content-type is not sent when options.contentType===false" );
|
||||
// Some server/interpreter combinations always supply a Content-Type to scripts
|
||||
data = data || "content-type: \n";
|
||||
strictEqual( data, "content-type: \n", "Test content-type is not set when options.contentType===false" );
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user