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;
|
if (finished == 0) break;
|
||||||
}
|
}
|
||||||
n = (try scanner.next()).string;
|
|
||||||
params = void{};
|
params = void{};
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -234,6 +233,9 @@ pub fn getContent(
|
|||||||
};
|
};
|
||||||
params = try std.json.innerParse(T, alloc, scanner, options);
|
params = try std.json.innerParse(T, alloc, scanner, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// go next
|
||||||
|
n = (try scanner.next()).string;
|
||||||
} else {
|
} else {
|
||||||
params = switch (@typeInfo(T)) {
|
params = switch (@typeInfo(T)) {
|
||||||
.Void => void{},
|
.Void => void{},
|
||||||
|
|||||||
Reference in New Issue
Block a user