Fix pack URL validation, Version file update route, and spaces in file download URLs (#275)

This commit is contained in:
Geometrically
2022-01-09 15:35:01 -07:00
committed by GitHub
parent 016e743653
commit 384e14b32d
5 changed files with 20 additions and 6 deletions

View File

@@ -633,7 +633,9 @@ pub async fn upload_file(
content_type,
&format!(
"data/{}/versions/{}/{}",
project_id, version_number, file_name
project_id,
version_number,
urlencoding::encode(&file_name)
),
data.freeze(),
)

View File

@@ -306,7 +306,6 @@ pub async fn delete_file(
#[derive(Deserialize)]
pub struct UpdateData {
pub hash: (String, String),
pub loaders: Vec<Loader>,
pub game_versions: Vec<GameVersion>,
}