summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-06-20 17:57:17 +0200
committerYorhel <git@yorhel.nl>2020-06-20 17:57:19 +0200
commit7168076548a083f4b57a23773b198b0402a711eb (patch)
tree252ef3b2bd6fbf519c26c570e6937e1b2073bbcb
parent7631954a9c58e0d7f841d47fa73d281c2f46f4b3 (diff)
dispatch/meta: Fetch the Pack Index from the new ShareApi path
In line with spec commit ac18f6993164423c9eef22ea1e81a74eb90475c1
-rw-r--r--src/dispatch/meta.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispatch/meta.rs b/src/dispatch/meta.rs
index ee56051..c9598cc 100644
--- a/src/dispatch/meta.rs
+++ b/src/dispatch/meta.rs
@@ -59,7 +59,7 @@ fn fetch_meta(conn: &Client) -> Result<(Option<String>,Option<String>,Hash), Err
fn fetch_packs(conn: &Client, blake3: &Hash, buf: &mut Vec<u8>) -> Result<(), Error> {
let t_start = Instant::now();
- conn.get("/.chifs-share/blake3.packs")?;
+ conn.get(&format!("/.chifs-share/blake3/{}", blake3))?;
let res = conn.recv(MAXPACKSLEN)?;
if res.code != 200 {
return Err(Error::BadStatus(res.code));