Index: pkg/http/lib/src/streamed_request.dart |
diff --git a/pkg/http/lib/src/streamed_request.dart b/pkg/http/lib/src/streamed_request.dart |
index 1b72eabc0482e43194c43fc5a74440ae5dc3536a..ceff1a13ac818da2863fa914b5c4419bebb2fe52 100644 |
--- a/pkg/http/lib/src/streamed_request.dart |
+++ b/pkg/http/lib/src/streamed_request.dart |
@@ -32,7 +32,7 @@ class StreamedRequest extends BaseRequest { |
/// Creates a new streaming request. |
StreamedRequest(String method, Uri url) |
: super(method, url), |
- _controller = new StreamController<List<int>>(); |
+ _controller = new StreamController<List<int>>(sync: true); |
/// Freezes all mutable fields other than [stream] and returns a |
/// single-subscription [ByteStream] that emits the data being written to |