mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 09:34:50 +00:00
Fix deep link installation for mods containing + (plus sign) (#6464)
* ffix: preserve literal '+' in deep link URI thru API call * chore: check for missing projects during installs * chore: remove accidental test files and quote error ID * fix rustfmt formatting for the change
This commit is contained in:
@@ -1105,8 +1105,15 @@ impl CachedEntry {
|
||||
.collect::<Vec<_>>()
|
||||
.chunks(MAX_REQUEST_SIZE)
|
||||
.map(|chunk| {
|
||||
serde_json::to_string(&chunk)
|
||||
.map(|keys| format!("{api_url}{url}{keys}"))
|
||||
serde_json::to_string(&chunk).map(|keys| {
|
||||
format!(
|
||||
"{api_url}{url}{}",
|
||||
url::form_urlencoded::byte_serialize(
|
||||
keys.as_bytes()
|
||||
)
|
||||
.collect::<String>()
|
||||
)
|
||||
})
|
||||
})
|
||||
.collect::<Result<Vec<_>, _>>()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user