Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index f239de3d01762d51614439bc1f823d981189fbc1..358365b9ed0f741a4c3133f2b37c072e8c9b83c1 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -94,7 +94,7 @@ void serve([List<d.Descriptor> contents]) { |
new ByteStream(stream).toBytes().then((data) { |
response.statusCode = 200; |
response.contentLength = data.length; |
- response.writeBytes(data); |
+ response.add(data); |
response.close(); |
}).catchError((e) { |
response.statusCode = 404; |