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

Unified Diff: pkg/oauth2/lib/src/credentials.dart

Issue 65583004: Add utility methods for sending non-form data in pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review Created 7 years, 1 month 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: pkg/oauth2/lib/src/credentials.dart
diff --git a/pkg/oauth2/lib/src/credentials.dart b/pkg/oauth2/lib/src/credentials.dart
index 13d33204cc2164a32a0b237e19c92c4c1f386119..ce4e06454ffd52a59c82f24b845ce7a347fbdd2d 100644
--- a/pkg/oauth2/lib/src/credentials.dart
+++ b/pkg/oauth2/lib/src/credentials.dart
@@ -173,7 +173,7 @@ class Credentials {
};
if (!scopes.isEmpty) fields["scope"] = scopes.join(' ');
- return httpClient.post(tokenEndpoint, fields: fields);
+ return httpClient.post(tokenEndpoint, body: fields);
}).then((response) {
return handleAccessTokenResponse(
response, tokenEndpoint, startTime, scopes);
« no previous file with comments | « pkg/oauth2/lib/src/authorization_code_grant.dart ('k') | sdk/lib/_internal/pub/lib/src/command/uploader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698