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

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

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: pkg/http/lib/src/multipart_request.dart
diff --git a/pkg/http/lib/src/multipart_request.dart b/pkg/http/lib/src/multipart_request.dart
index b311b8e6dabe01e82dc24dfb223fb04f3b834cdd..155ead1605c40be6e6a9d4a11577cd885a19326a 100644
--- a/pkg/http/lib/src/multipart_request.dart
+++ b/pkg/http/lib/src/multipart_request.dart
@@ -98,7 +98,7 @@ class MultipartRequest extends BaseRequest {
void writeAscii(String string) {
assert(isPlainAscii(string));
- controller.add(string.charCodes);
+ controller.add(string.codeUnits);
}
writeUtf8(String string) => controller.add(encodeUtf8(string));

Powered by Google App Engine
This is Rietveld 408576698