fix path assumption
This commit is contained in:
parent
8f8f6fcd8d
commit
5aede0d096
1 changed files with 1 additions and 1 deletions
|
|
@ -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", .{});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue