Fix build.

zig build test can pass, but zig build run won't even compile. // TODO: fix.
This commit is contained in:
Karl Seguin
2025-02-10 11:18:16 +08:00
parent 6863f3227f
commit 4ab02fab1c

View File

@@ -375,7 +375,7 @@ pub const Page = struct {
defer alloc.free(ct.?);
log.debug("header content-type: {s}", .{ct.?});
const mime = try Mime.parse(ct.?);
var mime = try Mime.parse(alloc, ct.?);
defer mime.deinit();
if (mime.isHTML()) {