You've already forked AstralRinth
forked from didirus/AstralRinth
Fix pack URL validation, Version file update route, and spaces in file download URLs (#275)
This commit is contained in:
@@ -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(),
|
||||
)
|
||||
|
||||
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user