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