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

Unified Diff: sdk/lib/io/http_body_impl.dart

Issue 18576006: Remove _HttpUtils from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: sdk/lib/io/http_body_impl.dart
diff --git a/sdk/lib/io/http_body_impl.dart b/sdk/lib/io/http_body_impl.dart
index 900dff51e9304d8349993e36a0972c2b38ad8584..95726c70af23afb171bc859d872d64704c896e21 100644
--- a/sdk/lib/io/http_body_impl.dart
+++ b/sdk/lib/io/http_body_impl.dart
@@ -120,8 +120,8 @@ class _HttpBodyHandler {
case "x-www-form-urlencoded":
return asText(Encoding.ASCII)
.then((body) {
- var map = _HttpUtils.splitQueryString(
- body.body, encoding: defaultEncoding);
+ var map = Uri.splitQueryString(body.body,
Lasse Reichstein Nielsen 2013/07/04 14:56:33 contentType doesn't have a "CharSet"?
Anders Johnsen 2013/07/05 09:51:28 No, even though people would like to have it. That
+ decodeString: (s) => _decodeString(s, defaultEncoding));
var result = {};
for (var key in map.keys) {
result[key] = map[key];

Powered by Google App Engine
This is Rietveld 408576698