Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Unified Diff: sdk/lib/io/http_impl.dart

Issue 12334119: Fix issus 8828 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/io/regress_8828_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | tests/standalone/io/regress_8828_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698