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) { |