mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
page: avoid crash on empty body
This commit is contained in:
@@ -756,7 +756,14 @@ pub const Page = struct {
|
|||||||
self.documentIsComplete();
|
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