File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ const user_agent = "Lightpanda.io/1.0";
2222
2323pub const Loader = struct {
2424 client : std.http.Client ,
25- server_header_buffer : [1024 ]u8 = undefined ,
25+ // use 16KB for headers buffer size.
26+ server_header_buffer : [1024 * 16 ]u8 = undefined ,
2627
2728 pub const Response = struct {
2829 alloc : std.mem.Allocator ,
Original file line number Diff line number Diff line change @@ -129,8 +129,11 @@ pub const XMLHttpRequest = struct {
129129 response_bytes : ? []const u8 = null ,
130130 response_type : ResponseType = .Empty ,
131131 response_headers : Headers ,
132- // used by zig client to parse reponse headers.
133- response_header_buffer : [1024 ]u8 = undefined ,
132+
133+ // used by zig client to parse response headers.
134+ // use 16KB for headers buffer size.
135+ response_header_buffer : [1024 * 16 ]u8 = undefined ,
136+
134137 response_status : u10 = 0 ,
135138 response_override_mime_type : ? []const u8 = null ,
136139 response_mime : Mime = undefined ,
You can’t perform that action at this time.
0 commit comments