Skip to content

Commit e89b190

Browse files
authored
Remove expectation that DELETE without a body has 'content-length:0' header. (#578)
See https://dart-review.googlesource.com/c/sdk/+/194881
1 parent 9d4db9d commit e89b190

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/io/http_test.dart

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -375,17 +375,16 @@ void main() {
375375
expect(response.statusCode, equals(200));
376376
expect(
377377
response.body,
378-
parse(equals({
379-
'method': 'DELETE',
380-
'path': '/',
381-
'headers': {
382-
'content-length': ['0'],
383-
'accept-encoding': ['gzip'],
384-
'user-agent': ['Dart'],
385-
'x-random-header': ['Value'],
386-
'x-other-header': ['Other Value']
387-
}
388-
})));
378+
parse(allOf(
379+
containsPair('method', 'DELETE'),
380+
containsPair('path', '/'),
381+
containsPair(
382+
'headers',
383+
allOf(
384+
containsPair('accept-encoding', ['gzip']),
385+
containsPair('user-agent', ['Dart']),
386+
containsPair('x-random-header', ['Value']),
387+
containsPair('x-other-header', ['Other Value']))))));
389388
});
390389

391390
test('read', () async {

0 commit comments

Comments
 (0)