| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index 3c81acbf092923b9ef375fbb3bf0b2d8ed8c7582..4f65b855d04ecb9cd8cb3d10a5d41f9d11b034f7 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -346,7 +346,7 @@ class _HttpOutboundMessage<T> extends IOSink {
|
|
|
| void add(List<int> data) {
|
| _writeHeaders();
|
| - if (_ignoreBody) return;
|
| + if (_ignoreBody || data.length == 0) return;
|
| if (_chunked) {
|
| _ChunkedTransformer._addChunk(data, super.add);
|
| } else {
|
|
|