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

Unified Diff: pkg/http/lib/src/io_client.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 | « pkg/http/lib/src/base_request.dart ('k') | pkg/http/test/client_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/io_client.dart
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart
index 1a432d6368ae71da7890ca82d6f5bd35afab3f87..5d04ec2ff40952808842530a064ca952fdbe076f 100644
--- a/pkg/http/lib/src/io_client.dart
+++ b/pkg/http/lib/src/io_client.dart
@@ -57,7 +57,9 @@ class IOClient extends BaseClient {
connection.onResponse = (response) {
var headers = {};
- response.headers.forEach((key, value) => headers[key] = value);
+ response.headers.forEach((key, values) {
+ headers[key] = Strings.join(values, ',');
Bob Nystrom 2013/01/29 23:51:54 values.join(',') lib_v2 is like living IN THE FUT
+ });
if (completed) return;
« no previous file with comments | « pkg/http/lib/src/base_request.dart ('k') | pkg/http/test/client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698