Index: sdk/lib/io/http_impl.dart |
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
index 50d1fc66c819ec90c37114d562e41bed88df7d66..c91a364b7cca1f0aa9ba634425adca2f4a943f2e 100644 |
--- a/sdk/lib/io/http_impl.dart |
+++ b/sdk/lib/io/http_impl.dart |
@@ -391,7 +391,7 @@ class _HttpOutboundMessage<T> extends IOSink { |
return; |
} |
_chunked = headers.chunkedTransferEncoding; |
- if (!_chunked) { |
+ if (headers.contentLength >= 0) { |
_outgoing.setTransferLength(headers.contentLength); |
} |
} |