mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Fix getContent algo
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -223,7 +223,6 @@ pub fn getContent(
|
||||
}
|
||||
if (finished == 0) break;
|
||||
}
|
||||
n = (try scanner.next()).string;
|
||||
params = void{};
|
||||
} else {
|
||||
|
||||
@@ -234,6 +233,9 @@ pub fn getContent(
|
||||
};
|
||||
params = try std.json.innerParse(T, alloc, scanner, options);
|
||||
}
|
||||
|
||||
// go next
|
||||
n = (try scanner.next()).string;
|
||||
} else {
|
||||
params = switch (@typeInfo(T)) {
|
||||
.Void => void{},
|
||||
|
||||
Reference in New Issue
Block a user