Skip to content

Commit 5c2a392

Browse files
tvolkertmkustermann
authored andcommitted
Prepare for upcoming change to HttpRequest and HttpClientResponse (dart-archive/http2#44)
An upcoming change to the Dart SDK will change `HttpRequest` and `HttpClientResponse` from implementing `Stream<List<int>>` to implementing `Stream<Uint8List>`. This forwards-compatible change prepares for that SDK breaking change by casting the Stream to `List<int>` before transforming it. dart-lang/sdk#36900
1 parent 55c069b commit 5c2a392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/http2/test/multiprotocol_server_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Future makeHttp11Request(
7171
var request =
7272
await client.getUrl(Uri.parse('https://localhost:${server.port}/abc$i'));
7373
var response = await request.close();
74-
var body = await response.transform(utf8.decoder).join('');
74+
var body = await response.cast<List<int>>().transform(utf8.decoder).join('');
7575
expect(body, 'answer$i');
7676
}
7777

0 commit comments

Comments
 (0)