Skip to content

Commit

Permalink
fix: keep / in app download file name
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-frmr committed Jun 8, 2024
1 parent b190615 commit 0598537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kinode/packages/app_store/app_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ fn handle_remote_request(state: &mut State, source: &Address, request: RemoteReq
let file_name = match &request {
RemoteRequest::Download(_) => {
// the file name of the zipped app
format!("{}.zip", package_id)
format!("/{}.zip", package_id)
}
};

// get the .zip from VFS and attach as blob to response
let Ok(Ok(_)) = Request::to(("our", "vfs", "distro", "sys"))
.body(
serde_json::to_vec(&vfs::VfsRequest {
path: format!("/{}/pkg/{}", package_id, file_name),
path: format!("/{}/pkg{}", package_id, file_name),
action: vfs::VfsAction::Read,
})
.unwrap(),
Expand Down

0 comments on commit 0598537

Please sign in to comment.