We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a08c92 commit 0b2c467Copy full SHA for 0b2c467
src/browser/browser.zig
@@ -441,8 +441,15 @@ pub const Page = struct {
441
if (content_type) |ct| {
442
break :blk try Mime.parse(arena, ct);
443
}
444
- break :blk Mime.sniff(try response.peek());
445
- } orelse .unknown;
+
+ // 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
453
454
if (mime.isHTML()) {
455
try self.loadHTMLDoc(&response, mime.charset orelse "utf-8");
0 commit comments