pretty sure that bug was fixed

This commit is contained in:
Emil Lerch 2023-05-30 19:10:42 -07:00
parent e0bf317706
commit 2004d97919
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -89,7 +89,7 @@ fn serve(allocator: *std.mem.Allocator, response: *std.http.Server.Response) !*F
};
var serve_result = executor.serveFn.?(&request).?; // ok for this pointer deref to fail
log.debug("target: {s}", .{response.request.target});
log.debug("response ptr: {*}", .{serve_result.ptr}); // BUG: This works in tests, but does not when compiled (even debug mode)
log.debug("response ptr: {*}", .{serve_result.ptr});
var slice: []u8 = serve_result.ptr[0..serve_result.len];
log.debug("response body: {s}", .{slice});