Skip to content

Commit 4ab02fa

Browse files
committed
Fix build.
zig build test can pass, but zig build run won't even compile. // TODO: fix.
1 parent 6863f32 commit 4ab02fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/browser.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ pub const Page = struct {
375375
defer alloc.free(ct.?);
376376

377377
log.debug("header content-type: {s}", .{ct.?});
378-
const mime = try Mime.parse(ct.?);
378+
var mime = try Mime.parse(alloc, ct.?);
379379
defer mime.deinit();
380380

381381
if (mime.isHTML()) {

0 commit comments

Comments
 (0)