Index: tests/standalone/io/http_headers_state_test.dart |
diff --git a/tests/standalone/io/http_headers_state_test.dart b/tests/standalone/io/http_headers_state_test.dart |
index 73754c75039661d8660575edab88089d30dae3a0..a685eb6b0ff35fe361ee81123c312941a0233e11 100644 |
--- a/tests/standalone/io/http_headers_state_test.dart |
+++ b/tests/standalone/io/http_headers_state_test.dart |
@@ -19,7 +19,7 @@ void test(int totalConnections, [String body]) { |
// Can still mutate response headers as long as no data has been sent. |
response.headers.add("X-Response-Header", "value"); |
if (body != null) { |
- response.addString(body); |
+ response.write(body); |
// Cannot mutate response headers when data has been sent. |
Expect.throws(() => request.headers.add("X-Request-Header", "value2"), |
(e) => e is HttpException); |
@@ -42,7 +42,7 @@ void test(int totalConnections, [String body]) { |
// Can still mutate request headers as long as no data has been sent. |
request.headers.add("X-Request-Header", "value"); |
if (body != null) { |
- request.addString(body); |
+ request.write(body); |
// Cannot mutate request headers when data has been sent. |
Expect.throws( |
() => request.headers.add("X-Request-Header", "value2"), |