global: fixes

This commit is contained in:
nym21
2025-10-03 14:15:23 +02:00
parent cfdf8fdbca
commit d9c4653f82
9 changed files with 106 additions and 98 deletions

View File

@@ -96,7 +96,7 @@ impl BRK {
dateindex + CHUNK_SIZE
);
let body: Value = sonic_rs::from_str(minreq::get(url).send()?.json()?)?;
let body: Value = sonic_rs::from_str(minreq::get(url).send()?.as_str()?)?;
body.as_array()
.ok_or(Error::Str("Expect to be an array"))?