Index: pkg/http/lib/src/byte_stream.dart |
diff --git a/pkg/http/lib/src/byte_stream.dart b/pkg/http/lib/src/byte_stream.dart |
index eba08d400797100a104e5040b6ca50afa2f43154..20f78747f25d115a4690a156b1461bf51bc14ef0 100644 |
--- a/pkg/http/lib/src/byte_stream.dart |
+++ b/pkg/http/lib/src/byte_stream.dart |
@@ -35,5 +35,5 @@ class ByteStream extends StreamView<List<int>> { |
toBytes().then((bytes) => decodeString(bytes, encoding)); |
Stream<String> toStringStream([Encoding encoding=Encoding.UTF_8]) => |
- map((bytes) => decodeString(bytes, encoding)); |
+ transform(new StringDecoder(encoding)); |
} |