Skip to content

Commit 4a696b4

Browse files
Merge pull request #556 from lightpanda-io/mime-sniff-skip
browser: temporary ignore mime sniff
2 parents 5a08c92 + 0b2c467 commit 4a696b4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/browser/browser.zig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,15 @@ pub const Page = struct {
441441
if (content_type) |ct| {
442442
break :blk try Mime.parse(arena, ct);
443443
}
444-
break :blk Mime.sniff(try response.peek());
445-
} orelse .unknown;
444+
445+
// FIX-ME: we have a bug with response.peek()
446+
//break :blk Mime.sniff(try response.peek());
447+
448+
break :blk Mime{
449+
.content_type = .{ .text_html = {} },
450+
.charset = "utf-8",
451+
};
452+
};
446453

447454
if (mime.isHTML()) {
448455
try self.loadHTMLDoc(&response, mime.charset orelse "utf-8");

0 commit comments

Comments
 (0)