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

Unified Diff: tests/standalone/io/http_headers_test.dart

Issue 151123003: Skip bad cookies in http headers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: 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() {
« 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