1
0
Fork 0
This commit is contained in:
Cyborus 2024-01-01 17:56:03 -05:00
parent dccd4c51ba
commit ce08cb4d7f
No known key found for this signature in database
2 changed files with 14 additions and 4 deletions

View file

@ -213,7 +213,10 @@ impl Forgejo {
repo: &str,
target: &str,
) -> Result<Option<bytes::Bytes>, ForgejoError> {
let request = self.client.get(format!("repos/{owner}/{repo}/archive/{target}.zip")).build()?;
let request = self
.client
.get(format!("repos/{owner}/{repo}/archive/{target}.zip"))
.build()?;
self.execute_opt_raw(request).await
}
@ -223,7 +226,10 @@ impl Forgejo {
repo: &str,
target: &str,
) -> Result<Option<bytes::Bytes>, ForgejoError> {
let request = self.client.get(format!("repos/{owner}/{repo}/archive/{target}.tar.gz")).build()?;
let request = self
.client
.get(format!("repos/{owner}/{repo}/archive/{target}.tar.gz"))
.build()?;
self.execute_opt_raw(request).await
}