Index: pkg/http/lib/src/multipart_request.dart |
diff --git a/pkg/http/lib/src/multipart_request.dart b/pkg/http/lib/src/multipart_request.dart |
index 6d8f03bc967753a48a840d7e387800c69687e9b1..051ac76b5701d1054f2cc8791991e7ed44414705 100644 |
--- a/pkg/http/lib/src/multipart_request.dart |
+++ b/pkg/http/lib/src/multipart_request.dart |
@@ -89,7 +89,7 @@ class MultipartRequest extends BaseRequest { |
headers['content-transfer-encoding'] = 'binary'; |
super.finalize(); |
- var controller = new StreamController<List<int>>(); |
+ var controller = new StreamController<List<int>>(sync: true); |
void writeAscii(String string) { |
assert(isPlainAscii(string)); |