pretty sure that bug was fixed
This commit is contained in:
parent
e0bf317706
commit
2004d97919
|
@ -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
|
var serve_result = executor.serveFn.?(&request).?; // ok for this pointer deref to fail
|
||||||
log.debug("target: {s}", .{response.request.target});
|
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];
|
var slice: []u8 = serve_result.ptr[0..serve_result.len];
|
||||||
log.debug("response body: {s}", .{slice});
|
log.debug("response body: {s}", .{slice});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user