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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 12313105: Change the HTTP header field names to lowercase (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/http_headers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 8bc8a98737ced1e16127d6b81ef75a993564ba21..a4bfe397d463791166dcdeb7e4700f5d7d1af1c7 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -170,7 +170,7 @@ class _HttpClientResponse
List<Cookie> get cookies {
if (_cookies != null) return _cookies;
_cookies = new List<Cookie>();
- List<String> values = headers["set-cookie"];
+ List<String> values = headers[HttpHeaders.SET_COOKIE];
if (values != null) {
values.forEach((value) {
_cookies.add(new Cookie.fromSetCookieValue(value));
@@ -466,7 +466,7 @@ class _HttpResponse extends _HttpOutboundMessage<HttpResponse>
// Add all the cookies set to the headers.
if (_cookies != null) {
_cookies.forEach((cookie) {
- headers.add("set-cookie", cookie);
+ headers.add(HttpHeaders.SET_COOKIE, cookie);
});
}
@@ -657,7 +657,7 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientRequest>
sb.add("=");
sb.add(cookies[i].value);
}
- headers.add("cookie", sb.toString());
+ headers.add(HttpHeaders.COOKIE, sb.toString());
}
headers._finalize();
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698