| 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 4410a0e29b284701255b97d194b3d1f96b95ce40..736e86e7e785246012a47b7e2a2e0083b777a416 100644
|
| --- a/sdk/lib/io/http_body_impl.dart
|
| +++ b/sdk/lib/io/http_body_impl.dart
|
| @@ -110,6 +110,21 @@ class _HttpBodyHandler {
|
| "json",
|
| JSON.parse(body.body)));
|
|
|
| + case "x-www-form-urlencoded":
|
| + return asText(Encoding.ASCII)
|
| + .then((body) {
|
| + var map = _HttpUtils.splitQueryString(body.body);
|
| + var result = {};
|
| + String parse(String s) {
|
| + return _HttpUtils.decodeHttpEntityString(
|
| + _HttpUtils.decodeUrlEncodedString(s));
|
| + }
|
| + for (var key in map.keys) {
|
| + result[parse(key)] = parse(map[key]);
|
| + }
|
| + return new _HttpBody(contentType, "form", result);
|
| + });
|
| +
|
| default:
|
| break;
|
| }
|
|
|