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

Unified Diff: utils/pub/http.dart

Issue 12870003: Make argument to StringSink.writeln optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot one use-case. Created 7 years, 9 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 | « sdk/lib/io/io_sink.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/http.dart
diff --git a/utils/pub/http.dart b/utils/pub/http.dart
index b66f28d749f72b2fa79851f0ac700094b2dc429a..cb9d7e73809dd0a4302bf0b480fd7908533592cf 100644
--- a/utils/pub/http.dart
+++ b/utils/pub/http.dart
@@ -91,7 +91,7 @@ class PubHttpClient extends http.BaseClient {
if (contentTypeString == null) contentTypeString = '';
var contentType = new ContentType.fromString(contentTypeString);
if (contentType.value == 'application/x-www-form-urlencoded') {
- requestLog.writeln('');
+ requestLog.write('');
Søren Gjesse 2013/03/15 11:10:53 writeln()?
floitsch 2013/03/15 12:45:21 Done.
requestLog.writeln("Body fields:");
request.bodyFields.forEach((name, value) =>
requestLog.writeln(_logField(name, value)));
@@ -99,7 +99,7 @@ class PubHttpClient extends http.BaseClient {
contentType.value == 'application/json') {
requestLog.write(request.body);
} else if (request is http.MultipartRequest) {
- requestLog.writeln('');
+ requestLog.writeln();
requestLog.writeln("Body fields:");
request.fields.forEach((name, value) =>
requestLog.writeln(_logField(name, value)));
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698