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(); |