Index: tests/html/xhr_test.dart |
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart |
index 6394ef4db1a45213b62265052a7f98afdf8feae0..78b8c5a08097af05105ad46ca558009fcf2b8c26 100644 |
--- a/tests/html/xhr_test.dart |
+++ b/tests/html/xhr_test.dart |
@@ -249,9 +249,12 @@ main() { |
group('headers', () { |
test('xhr responseHeaders', () { |
- return HttpRequest.request(url, mimeType: 'application/binary').then( |
+ return HttpRequest.request(url).then( |
(xhr) { |
- expect(xhr.responseHeaders['content-type'], 'application/binary'); |
+ var serverHeader = xhr.responseHeaders['server']; |
+ expect(serverHeader, isNotNull); |
+ // Should be like: 'Dart/0.1 (dart:io)' |
+ expect(serverHeader.startsWith('Dart/'), isTrue); |
}); |
}); |
}); |