mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Revert "browser: temporary ignore mime sniff"
This reverts commit 0b2c4679fd.
This commit is contained in:
@@ -441,15 +441,8 @@ pub const Page = struct {
|
||||
if (content_type) |ct| {
|
||||
break :blk try Mime.parse(arena, ct);
|
||||
}
|
||||
|
||||
// FIX-ME: we have a bug with response.peek()
|
||||
//break :blk Mime.sniff(try response.peek());
|
||||
|
||||
break :blk Mime{
|
||||
.content_type = .{ .text_html = {} },
|
||||
.charset = "utf-8",
|
||||
};
|
||||
};
|
||||
break :blk Mime.sniff(try response.peek());
|
||||
} orelse .unknown;
|
||||
|
||||
if (mime.isHTML()) {
|
||||
try self.loadHTMLDoc(&response, mime.charset orelse "utf-8");
|
||||
|
||||
Reference in New Issue
Block a user