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

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

Issue 24122002: Change Uri methods taking a decode argument, to now take an encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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_body_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/utils.dart
diff --git a/pkg/http/lib/src/utils.dart b/pkg/http/lib/src/utils.dart
index fdfa05b1949f3e947d211ef652112e2e0d380720..28704dcb96b3c8e6af0b4d8a88e0f0af4422dc4b 100644
--- a/pkg/http/lib/src/utils.dart
+++ b/pkg/http/lib/src/utils.dart
@@ -21,9 +21,9 @@ Map<String, String> queryToMap(String queryList, {Encoding encoding}) {
for (var pair in queryList.split("&")) {
var split = split1(pair, "=");
if (split.isEmpty) continue;
- var key = Uri.decodeQueryComponent(split[0], decode: encoding.decode);
+ var key = Uri.decodeQueryComponent(split[0], encoding: encoding);
var value = Uri.decodeQueryComponent(split.length > 1 ? split[1] : "",
- decode: encoding.decode);
+ encoding: encoding);
map[key] = value;
}
return map;
« no previous file with comments | « no previous file | pkg/http_server/lib/src/http_body_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698