Compare commits

...

2 Commits

Author SHA1 Message Date
42bb4045d3
update to vector logo 2023-06-11 19:36:24 -07:00
94342c83ef
for loop asthetics 2023-06-11 11:32:37 -07:00
4 changed files with 2 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

View File

@ -1,4 +1,4 @@
[![](FlexiLib.png)](FlexiLib.png) ![](FlexiLib.svg)
FlexiLib FlexiLib
======== ========

View File

@ -552,9 +552,7 @@ fn writeToTestBuffers(response: []const u8, res: *std.http.Server.Response) void
const errmsg = "response exceeds 1024 bytes"; const errmsg = "response exceeds 1024 bytes";
const src = if (response.len < 1024) response else errmsg; const src = if (response.len < 1024) response else errmsg;
test_resp_buf_len = if (response.len < 1024) response.len else errmsg.len; test_resp_buf_len = if (response.len < 1024) response.len else errmsg.len;
for (src, 0..) |b, i| { for (src, 0..) |b, i| test_resp_buf[i] = b;
test_resp_buf[i] = b;
}
for (test_resp_buf_len..1024) |i| test_resp_buf[i] = 0; for (test_resp_buf_len..1024) |i| test_resp_buf[i] = 0;
} }
fn testRequest(request_bytes: []const u8) !void { fn testRequest(request_bytes: []const u8) !void {