fix 32 bit linux arm
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m58s
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m58s
This commit is contained in:
parent
95b5394aa8
commit
a810ce2105
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user