authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-07 20:49:51 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-07 20:49:51 -07:00
logad6cb8ee404036259f788e4d548b9b5a7d75389a
treec22c8b483ac8d36cef372455cb92838414d6448e
parent7d05e99601740c3388080dbb4ce569def970aeb9
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.16.0


3 files changed, 3 insertions(+), 3 deletions(-)

README.md+1-1
......@@ -3,7 +3,7 @@
33![loc](https://sloc.xyz/github/nektro/zig-net-http)
44[![license](https://img.shields.io/github/license/nektro/zig-net-http.svg)](https://github.com/nektro/zig-net-http/blob/master/LICENSE)
55[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
6[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/)
77[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
88
99An alternative HTTP server/client layer.
build.zig+1-1
......@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
1414 }),
1515 });
1616 deps.addAllTo(tests);
17 tests.linkLibC();
17 tests.root_module.link_libc = true;
1818 tests.use_llvm = !disable_llvm;
1919 tests.use_lld = !disable_llvm;
2020
http.zig+1-1
......@@ -245,7 +245,7 @@ pub const ClientRequest = struct {
245245 // HTTP/1.1 200 OK
246246 if (!std.mem.eql(u8, &try req.readArray(9), "HTTP/1.1 ")) return error.Bad;
247247 const status_int = extras.parseDigits(u16, &try req.readArray(3), 10) catch return error.Bad;
248 const status = std.meta.intToEnum(Status, status_int) catch return error.Bad;
248 const status = std.enums.fromInt(Status, status_int) orelse return error.Bad;
249249 if (!std.mem.eql(u8, &try req.readArray(1), " ")) return error.Bad;
250250 var phrase_buf: [64]u8 = undefined;
251251 _ = try req.readUntilDelimitersBuf(&phrase_buf, "\r\n");