]> source.dussan.org Git - jquery.git/commitdiff
Ref 27b22f4e: Don't try to outsmart Apache
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 15 Nov 2013 04:50:53 +0000 (23:50 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Fri, 15 Nov 2013 04:50:53 +0000 (23:50 -0500)
test/unit/ajax.js

index 6166e7bef7c1242ef4adead36d796c47c7d3344b..6ea588c7090facb2aa235ebf73c413d223138195 100644 (file)
@@ -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" );
                        }
                }
        ]);