Skip to content

Commit 5acd4b5

Browse files
committed
Revert "browser: temporary ignore mime sniff"
This reverts commit 0b2c467.
1 parent 9e88adb commit 5acd4b5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/browser/browser.zig

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -441,15 +441,8 @@ pub const Page = struct {
441441
if (content_type) |ct| {
442442
break :blk try Mime.parse(arena, ct);
443443
}
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-
};
444+
break :blk Mime.sniff(try response.peek());
445+
} orelse .unknown;
453446

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

0 commit comments

Comments
 (0)