Skip to content

Commit 555c711

Browse files
committed
fix the "Accept" header test for jQuery 1.5+
jQuery keeps changing the MIME types list
1 parent 764e4e4 commit 555c711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/public/test/call-remote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ asyncTest('prefer JS, but accept any format', 1, function() {
6363
var accept = data.HTTP_ACCEPT;
6464
// HACK to normalize header sent by jQuery 1.4.4 and below:
6565
accept = accept.replace('*/*, */*', '*/*');
66-
equal(accept, '*/*;q=0.5, text/javascript, application/javascript');
66+
ok(accept.indexOf('*/*;q=0.5, text/javascript, application/javascript') === 0, 'Accept: ' + accept);
6767
});
6868
});
6969

0 commit comments

Comments
 (0)