Compare commits
2 Commits
v0.6.2-pre
...
v0.6.2
Author | SHA1 | Date | |
---|---|---|---|
5ed9fd4710 | |||
4763759997 |
@ -19,6 +19,14 @@ pub async fn download_file(
|
|||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
let res = client
|
let res = client
|
||||||
.get(url)
|
.get(url)
|
||||||
|
.header(
|
||||||
|
"User-Agent",
|
||||||
|
&format!(
|
||||||
|
"AlterWare Launcher | github.com/{}/{}",
|
||||||
|
crate::global::GH_OWNER,
|
||||||
|
crate::global::GH_REPO
|
||||||
|
),
|
||||||
|
)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
.or(Err(format!("Failed to GET from '{}'", &url)))?;
|
.or(Err(format!("Failed to GET from '{}'", &url)))?;
|
||||||
|
Reference in New Issue
Block a user