File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const CDP = @import("cdp/cdp.zig").CDP;
3939
4040const TimeoutCheck = std .time .ns_per_ms * 100 ;
4141
42- const MAX_HTTP_REQUEST_SIZE = 2048 ;
42+ const MAX_HTTP_REQUEST_SIZE = 4096 ;
4343
4444// max message size
4545// +14 for max websocket payload overhead
@@ -1142,7 +1142,7 @@ test "Client: http invalid request" {
11421142 var c = try createTestClient ();
11431143 defer c .deinit ();
11441144
1145- const res = try c .httpRequest ("GET /over/9000 HTTP/1.1\r \n " ++ "Header: " ++ ("a" ** 2050 ) ++ "\r \n \r \n " );
1145+ const res = try c .httpRequest ("GET /over/9000 HTTP/1.1\r \n " ++ "Header: " ++ ("a" ** 4100 ) ++ "\r \n \r \n " );
11461146 try testing .expectEqualStrings ("HTTP/1.1 413 \r \n " ++
11471147 "Connection: Close\r \n " ++
11481148 "Content-Length: 17\r \n \r \n " ++
You can’t perform that action at this time.
0 commit comments