Skip to content

Commit 57dee57

Browse files
committed
browser: assume no-content type is html
1 parent 92e2daf commit 57dee57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/browser/browser.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ pub const Page = struct {
399399
// no content type in HTTP headers.
400400
// TODO try to sniff mime type from the body.
401401
log.info("no content-type HTTP header", .{});
402-
return;
402+
403+
// Assume it's HTML for now.
404+
"text/html; charset=utf-8";
403405
};
404406

405407
log.debug("header content-type: {s}", .{ct});

0 commit comments

Comments
 (0)