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

Unified Diff: pkg/http_server/test/http_multipart_test.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 | « pkg/http_server/lib/src/http_multipart_form_data_impl.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/test/http_multipart_test.dart
diff --git a/pkg/http_server/test/http_multipart_test.dart b/pkg/http_server/test/http_multipart_test.dart
index ae9b3b80106d16bd5a77e8b30e6ff8bc3c89b92b..10d695b15801c7e1ff27089e8e2a079418d3e255 100644
--- a/pkg/http_server/test/http_multipart_test.dart
+++ b/pkg/http_server/test/http_multipart_test.dart
@@ -7,6 +7,7 @@ import "package:mime/mime.dart";
import "package:unittest/unittest.dart";
import 'dart:async';
import 'dart:io';
+import 'dart:convert';
class FormField {
final String name;
@@ -45,7 +46,8 @@ void postDataTest(List<int> message,
String boundary = request.headers.contentType.parameters['boundary'];
request
.transform(new MimeMultipartTransformer(boundary))
- .map(HttpMultipartFormData.parse)
+ .map((part) => HttpMultipartFormData.parse(
+ part, defaultEncoding: LATIN1))
.map((multipart) {
var future;
if (multipart.isText) {
« no previous file with comments | « pkg/http_server/lib/src/http_multipart_form_data_impl.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698