Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update response_status_line_tests.dart
Browse files Browse the repository at this point in the history
brianquinlan committed Sep 15, 2023
1 parent e6f903a commit 1ed024e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -37,6 +37,8 @@ void testResponseStatusLine(Client client) async {
httpServerChannel.sink.add('HTTP/1.1 201');
final response = await client.get(Uri.http(host, ''));
expect(response.statusCode, 201);
// Any empty Reason-Phrase is allowed according to RFC-2616. Any of these
// interpretations seem reasonable.
expect(response.reasonPhrase, anyOf(isNull, '', 'Created'));
});
});

0 comments on commit 1ed024e

Please sign in to comment.