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

Unified Diff: pkg/http/lib/src/byte_stream.dart

Issue 14958005: Default to UTF-8 in the HTTP package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | pkg/http/lib/src/utils.dart » ('j') | pkg/http/lib/src/utils.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | pkg/http/lib/src/utils.dart » ('j') | pkg/http/lib/src/utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698