mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-16 01:31:22 +10:00
Encoding game IDs and versions
This commit is contained in:
@ -7,6 +7,7 @@ use crate::{AppState, DB};
|
|||||||
use log::info;
|
use log::info;
|
||||||
use rustix::fs::{fallocate, FallocateFlags};
|
use rustix::fs::{fallocate, FallocateFlags};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
use urlencoding::encode;
|
||||||
use std::fs::{create_dir_all, File};
|
use std::fs::{create_dir_all, File};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::sync::atomic::AtomicUsize;
|
use std::sync::atomic::AtomicUsize;
|
||||||
@ -93,7 +94,7 @@ impl GameDownloadAgent {
|
|||||||
.join(
|
.join(
|
||||||
format!(
|
format!(
|
||||||
"/api/v1/client/metadata/manifest?id={}&version={}",
|
"/api/v1/client/metadata/manifest?id={}&version={}",
|
||||||
self.id, self.version
|
encode(&self.id), encode(&self.version)
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user