| author | |
| committer | |
| log | ad6cb8ee404036259f788e4d548b9b5a7d75389a |
| tree | c22c8b483ac8d36cef372455cb92838414d6448e |
| parent | 7d05e99601740c3388080dbb4ce569def970aeb9 |
| signature |
3 files changed, 3 insertions(+), 3 deletions(-)
README.md+1-1| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 |  |
| 4 | 4 | [](https://github.com/nektro/zig-net-http/blob/master/LICENSE) |
| 5 | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | |
| 6 | [](https://ziglang.org/) | |
| 7 | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | |
| 9 | 9 | An alternative HTTP server/client layer. |
build.zig+1-1| ... | ... | @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void { |
| 14 | 14 | }), |
| 15 | 15 | }); |
| 16 | 16 | deps.addAllTo(tests); |
| 17 | tests.linkLibC(); | |
| 17 | tests.root_module.link_libc = true; | |
| 18 | 18 | tests.use_llvm = !disable_llvm; |
| 19 | 19 | tests.use_lld = !disable_llvm; |
| 20 | 20 |
http.zig+1-1| ... | ... | @@ -245,7 +245,7 @@ pub const ClientRequest = struct { |
| 245 | 245 | // HTTP/1.1 200 OK |
| 246 | 246 | if (!std.mem.eql(u8, &try req.readArray(9), "HTTP/1.1 ")) return error.Bad; |
| 247 | 247 | 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; | |
| 249 | 249 | if (!std.mem.eql(u8, &try req.readArray(1), " ")) return error.Bad; |
| 250 | 250 | var phrase_buf: [64]u8 = undefined; |
| 251 | 251 | _ = try req.readUntilDelimitersBuf(&phrase_buf, "\r\n"); |