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

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: Minor fix. 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') | utils/pub/safe_http_server.dart » ('j') | 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 bd68b45680c0f1a532b46ee48fdc06b705e9cf98..59fb586df26a0e6b023c5d9cb7ebd76c91a887f0 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 (request is http.MultipartRequest) {
- requestLog.writeln('');
+ requestLog.writeln();
requestLog.writeln("Body fields:");
request.fields.forEach((name, value) =>
requestLog.writeln(_logField(name, value)));
@@ -99,7 +99,7 @@ class PubHttpClient extends http.BaseClient {
// TODO(nweiz): make MultipartRequest.files readable, and log them?
} else if (request is http.Request) {
if (contentType.value == 'application/x-www-form-urlencoded') {
- requestLog.writeln('');
+ requestLog.writeln();
requestLog.writeln("Body fields:");
request.bodyFields.forEach((name, value) =>
requestLog.writeln(_logField(name, value)));
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | utils/pub/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698