fix 32 bit linux arm

This commit is contained in:
Emil Lerch 2023-10-25 10:19:51 -07:00
parent 95b5394aa8
commit a810ce2105
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -78,9 +78,8 @@ fn processRequest(aa: std.mem.Allocator, server: *std.http.Server, event_handler
@memcpy(&errbuf, errstr);
var response_bytes: []const u8 = errbuf[0..];
var body =
if (res.request.content_length) |l|
try res.reader().readAllAlloc(aa, @as(usize, l))
var body = if (res.request.content_length) |l|
try res.reader().readAllAlloc(aa, @as(usize, @intCast(l)))
else
try aa.dupe(u8, "");
// no need to free - will be handled by arena