Index: tests/standalone/io/http_headers_test.dart |
diff --git a/tests/standalone/io/http_headers_test.dart b/tests/standalone/io/http_headers_test.dart |
index d1d261f1019e069faa6dfd4a6f94fc5c7d9d791c..7417d56382cda6c26a818271f2718d82fa4a391b 100644 |
--- a/tests/standalone/io/http_headers_test.dart |
+++ b/tests/standalone/io/http_headers_test.dart |
@@ -436,6 +436,13 @@ void testInvalidCookie() { |
Expect.throws(() => new _Cookie.fromSetCookieValue("xxx")); |
Expect.throws(() => new _Cookie.fromSetCookieValue( |
"xxx=yyy; expires=12 jan 2013")); |
+ |
+ _HttpHeaders headers = new _HttpHeaders("1.1"); |
+ headers.set('Cookie', |
+ 'DARTSESSID=d3d6fdd78d51aaaf2924c32e991f4349; undefined'); |
+ Expect.equals('DARTSESSID', headers._parseCookies().single.name); |
+ Expect.equals('d3d6fdd78d51aaaf2924c32e991f4349', |
+ headers._parseCookies().single.value); |
} |
void testHeaderLists() { |