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

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

Issue 65043019: Use a re-usable buffer for writing HTTP headers. This includes a new header limit of 8192 bytes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup. Created 7 years, 1 month 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 | « tests/standalone/io/http_client_request_test.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_server_response_test.dart
diff --git a/tests/standalone/io/http_server_response_test.dart b/tests/standalone/io/http_server_response_test.dart
index 60c350a99970aed4544159a984e6f1f118a8d71b..3c5767ea176cec6a55951fa7c8ef1ce72c12523b 100644
--- a/tests/standalone/io/http_server_response_test.dart
+++ b/tests/standalone/io/http_server_response_test.dart
@@ -274,6 +274,20 @@ void testIgnoreRequestData() {
}
+void testBadHeaders() {
+ testServerRequest((server, request) {
+ var value = "a";
+ for (int i = 0; i < 8 * 1024; i++) {
+ value += 'a';
+ }
+ request.response.headers.set('name', value);
+ request.response.close().catchError((error) {
+ server.close();
+ }, test: (e) => e is HttpException);
+ });
+}
+
+
void main() {
testResponseDone();
testResponseAddStream();
@@ -282,4 +296,5 @@ void main() {
testBadResponseAdd();
testBadResponseClose();
testIgnoreRequestData();
+ testBadHeaders();
}
« no previous file with comments | « tests/standalone/io/http_client_request_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698