mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
page: avoid crash on empty body
This commit is contained in:
@@ -756,7 +756,14 @@ pub const Page = struct {
|
||||
self.documentIsComplete();
|
||||
}
|
||||
},
|
||||
else => unreachable,
|
||||
.pre => {
|
||||
// we didn't get any data.
|
||||
self.documentIsComplete();
|
||||
},
|
||||
else => {
|
||||
log.err(.app, "unreachable mode", .{ .mode = self.mode });
|
||||
unreachable;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user