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

Unified Diff: pkg/http_server/lib/src/http_body_impl.dart

Issue 26685004: Expand usage of defaultEncoding in HttpBody in the http_server package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add link and generate docs for http_server. Created 7 years, 2 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_server/lib/src/http_multipart_form_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/lib/src/http_body_impl.dart
diff --git a/pkg/http_server/lib/src/http_body_impl.dart b/pkg/http_server/lib/src/http_body_impl.dart
index f3ffa9e7252d7d7a2c1d8c826e5ab7e2cdcb0566..227c60393949fcc0862fa870c91a6f5904d5c009 100644
--- a/pkg/http_server/lib/src/http_body_impl.dart
+++ b/pkg/http_server/lib/src/http_body_impl.dart
@@ -67,7 +67,8 @@ class _HttpBodyHandler {
return stream
.transform(new MimeMultipartTransformer(
contentType.parameters['boundary']))
- .map((HttpMultipartFormData.parse))
+ .map((part) => HttpMultipartFormData.parse(
+ part, defaultEncoding: defaultEncoding))
.map((multipart) {
var future;
if (multipart.isText) {
@@ -107,7 +108,7 @@ class _HttpBodyHandler {
switch (contentType.primaryType) {
case "text":
- return asText(ASCII);
+ return asText(defaultEncoding);
case "application":
switch (contentType.subType) {
« no previous file with comments | « no previous file | pkg/http_server/lib/src/http_multipart_form_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698