Remove expectation that DELETE without a body has 'content-length:0' header. (#578)
See https://dart-review.googlesource.com/c/sdk/+/194881
diff --git a/test/io/http_test.dart b/test/io/http_test.dart
index 960ad86..58b1d86 100644
--- a/test/io/http_test.dart
+++ b/test/io/http_test.dart
@@ -375,17 +375,16 @@
expect(response.statusCode, equals(200));
expect(
response.body,
- parse(equals({
- 'method': 'DELETE',
- 'path': '/',
- 'headers': {
- 'content-length': ['0'],
- 'accept-encoding': ['gzip'],
- 'user-agent': ['Dart'],
- 'x-random-header': ['Value'],
- 'x-other-header': ['Other Value']
- }
- })));
+ parse(allOf(
+ containsPair('method', 'DELETE'),
+ containsPair('path', '/'),
+ containsPair(
+ 'headers',
+ allOf(
+ containsPair('accept-encoding', ['gzip']),
+ containsPair('user-agent', ['Dart']),
+ containsPair('x-random-header', ['Value']),
+ containsPair('x-other-header', ['Other Value']))))));
});
test('read', () async {