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; |