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

Unified Diff: tests/standalone/src/io/HttpParserTest.dart

Issue 9956058: Expose a bug in the Http Header Parser. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « no previous file | tests/standalone/standalone.status » ('j') | tests/standalone/standalone.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/HttpParserTest.dart
===================================================================
--- tests/standalone/src/io/HttpParserTest.dart (revision 6032)
+++ tests/standalone/src/io/HttpParserTest.dart (working copy)
@@ -540,6 +540,9 @@
// Currently no HTTP 1.0 support.
request = "GET / HTTP/1.0\r\n\r\n";
_testParseInvalidRequest(request);
+
+ request = "GET / HTTP/1.1\r\nKeep-Alive: False\r\nbadheader\r\n\r\n";
+ _testParseInvalidRequest(request);
Søren Gjesse 2012/04/02 07:36:02 You should open a bug on this, and then wrap this
Anders Johnsen 2012/04/02 08:19:01 Done.
}
static void testParseInvalidResponse() {
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | tests/standalone/standalone.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698