Skip to content

Commit 00654f9

Browse files
committed
fix(backend): use get instead of head for http type
1 parent 1900ee8 commit 00654f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/aqua.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ impl AquaBackend {
263263
}
264264
AquaPackageType::Http => {
265265
let url = pkg.url(v)?;
266-
HTTP.head(&url).await?;
266+
// should use HEAD, but some servers do not support it (e.g. Gitea Attachments)
267+
HTTP.get_async(&url).await?;
267268
Ok(url)
268269
}
269270
AquaPackageType::Cargo => {

0 commit comments

Comments
 (0)