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

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

Issue 12758009: Support GZip encoding on the http server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revivew fixes Created 7 years, 9 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 | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_10_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_sink.dart
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart
index ffc02cebf4024db6d7fe7ae3b8570742e25f9436..d8b78fd4bc914f4b11f727b2032bb4161c3ab2da 100644
--- a/sdk/lib/io/io_sink.dart
+++ b/sdk/lib/io/io_sink.dart
@@ -137,7 +137,7 @@ class _IOSinkImpl<T> implements IOSink<T> {
Future<T> get done {
_controller;
- return _pipeFuture.then((_) => this);
+ return _pipeFuture;
}
void _completeWriteStreamCompleter([error]) {
@@ -160,7 +160,7 @@ class _IOSinkImpl<T> implements IOSink<T> {
var future = _controller.stream.pipe(_target);
future.then((_) => _completeWriteStreamCompleter(),
onError: (error) => _completeWriteStreamCompleter(error));
- _pipeFuture = future.then((_) => this);
+ _pipeFuture = future.then((value) => value);
}
return _controllerInstance;
}
@@ -228,7 +228,7 @@ class _IOSinkImpl<T> implements IOSink<T> {
if (unbind) {
return _writeStreamCompleter.future;
} else {
- return _pipeFuture.then((_) => this);
+ return _pipeFuture;
}
}
}
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_10_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698