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

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

Issue 12084052: Always treat headers as individual strings in pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/io_client.dart » ('j') | pkg/http/lib/src/io_client.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/base_request.dart
diff --git a/pkg/http/lib/src/base_request.dart b/pkg/http/lib/src/base_request.dart
index 943f1f6d7752bf6fa405d62eba442e381f788ce4..ffff471f123385aac5858383bb94fd6b142444db 100644
--- a/pkg/http/lib/src/base_request.dart
+++ b/pkg/http/lib/src/base_request.dart
@@ -82,7 +82,7 @@ abstract class BaseRequest {
/// Creates a new HTTP request.
BaseRequest(this.method, this.url)
- : headers = {};
+ : headers = <String, String>{};
/// Finalizes the HTTP request in preparation for it being sent. This freezes
/// all mutable fields and returns a single-subscription [ByteStream] that
« no previous file with comments | « no previous file | pkg/http/lib/src/io_client.dart » ('j') | pkg/http/lib/src/io_client.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698