fix path assumption

This commit is contained in:
Alan Daniels 2025-11-02 13:51:19 +11:00
parent 8f8f6fcd8d
commit 5aede0d096

View file

@ -83,5 +83,5 @@ pub const HtmlEncodeFormatter = struct {
pub fn unhandledRequest(ctx: *@This(), arena: Allocator, r: zap.Request) anyerror!void { pub fn unhandledRequest(ctx: *@This(), arena: Allocator, r: zap.Request) anyerror!void {
_ = ctx; _ = ctx;
try SendInertiaResponse(.{ .path = r.path.? }, r, arena, "404", .{}); try SendInertiaResponse(.{ .path = r.path orelse "/" }, r, arena, "404", .{});
} }