| Index: tests/standalone/io/http_read_test.dart
|
| diff --git a/tests/standalone/io/http_read_test.dart b/tests/standalone/io/http_read_test.dart
|
| index 6cba2b5108367155f40fa89b8e04b854ed32c8f1..32226c66a1e944fc66ed9546b409723baf4c5656 100644
|
| --- a/tests/standalone/io/http_read_test.dart
|
| +++ b/tests/standalone/io/http_read_test.dart
|
| @@ -111,7 +111,7 @@ class TestServer {
|
| var response = request.response;
|
| response.statusCode = HttpStatus.NOT_FOUND;
|
| response.headers.set("Content-Type", "text/html; charset=UTF-8");
|
| - response.addString("Page not found");
|
| + response.write("Page not found");
|
| response.close();
|
| }
|
|
|
| @@ -170,11 +170,11 @@ void testRead(bool chunkedEncoding) {
|
| httpClient.post("127.0.0.1", port, "/echo")
|
| .then((request) {
|
| if (chunkedEncoding) {
|
| - request.addString(data.substring(0, 10));
|
| - request.addString(data.substring(10, data.length));
|
| + request.write(data.substring(0, 10));
|
| + request.write(data.substring(10, data.length));
|
| } else {
|
| request.contentLength = data.length;
|
| - request.add(data.codeUnits);
|
| + request.writeBytes(data.codeUnits);
|
| }
|
| return request.close();
|
| })
|
|
|