mirror of
https://github.com/Drop-OSS/drop-app
synced 2026-08-27 22:23:04 -04:00
Encoding game IDs and versions
This commit is contained in:
parent
7049673596
commit
6ef444ed12
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ use crate::{AppState, DB};
|
|||
use log::info;
|
||||
use rustix::fs::{fallocate, FallocateFlags};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use urlencoding::encode;
|
||||
use std::fs::{create_dir_all, File};
|
||||
use std::path::Path;
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
|
|
@ -93,7 +94,7 @@ impl GameDownloadAgent {
|
|||
.join(
|
||||
format!(
|
||||
"/api/v1/client/metadata/manifest?id={}&version={}",
|
||||
self.id, self.version
|
||||
encode(&self.id), encode(&self.version)
|
||||
)
|
||||
.as_str(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue