diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-11-14 23:50:53 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-11-14 23:50:53 -0500 |
commit | 8dc0f2ea84e1861d8d8dfa7699268368c659f8e9 (patch) | |
tree | 1b7a2941799325a648324a1a8e25f6391d4d7c8f /test/unit/ajax.js | |
parent | 27b22f4ef5f3f291204f0e0f9f414ac503f6c8a8 (diff) | |
download | jquery-8dc0f2ea84e1861d8d8dfa7699268368c659f8e9.tar.gz jquery-8dc0f2ea84e1861d8d8dfa7699268368c659f8e9.zip |
Ref 27b22f4e: Don't try to outsmart Apache
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 6166e7bef..6ea588c70 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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" ); } } ]); |