diff --git a/http.zig b/http.zig index e387bb48d36e8cdd9568587e1311b2c2c13a5b0b..109aa9548ed2ac953325a559f6fe9b74b896e2bc 100644 --- a/http.zig +++ b/http.zig @@ -252,7 +252,7 @@ pub const ClientRequest = struct { // HTTP/1.1 200 OK if (!std.mem.eql(u8, &try req.readArray(9), "HTTP/1.1 ")) return error.Bad; - const status_int = std.fmt.parseInt(u16, &try req.readArray(3), 10) catch return error.Bad; + const status_int = extras.parseDigits(u16, &try req.readArray(3), 10) catch return error.Bad; const status = std.meta.intToEnum(Status, status_int) catch return error.Bad; if (!std.mem.eql(u8, &try req.readArray(1), " ")) return error.Bad; var phrase_buf: [64]u8 = undefined;