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

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

Issue 23450003: Add encoding tests to pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/request.dart
diff --git a/pkg/http/lib/src/request.dart b/pkg/http/lib/src/request.dart
index 8aacbe387877d372c04d3625b90f3ff37c1d21fc..f247f009fd5bb0d93b093d92928808431c3eafef 100644
--- a/pkg/http/lib/src/request.dart
+++ b/pkg/http/lib/src/request.dart
@@ -121,7 +121,7 @@ class Request extends BaseRequest {
'content-type "application/x-www-form-urlencoded".');
}
- return queryToMap(body);
+ return queryToMap(body, encoding: encoding);
}
set bodyFields(Map<String, String> fields) {
@@ -132,7 +132,7 @@ class Request extends BaseRequest {
'content-type "${_contentType.value}".');
}
- this.body = mapToQuery(fields);
+ this.body = mapToQuery(fields, encoding: encoding);
}
/// Creates a new HTTP request.
« no previous file with comments | « no previous file | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698