Skip to content

Commit dde8f2f

Browse files
authored
chore: pass accept header to asset download request (#534)
1 parent 027be4e commit dde8f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-filcrypto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ download_release_tarball() {
131131
-w "%{url_effective}" \
132132
"${__release_url}")
133133

134-
if ! curl "${auth_header[@]}" --retry 3 --output "${__tar_path}" "${__asset_url}"; then
134+
if ! curl "${auth_header[@]}" --header "Accept: application/octet-stream" --retry 3 --output "${__tar_path}" "${__asset_url}"; then
135135
(>&2 echo "[download_release_tarball] failed to download release asset (tag URL: ${__release_tag_url}, asset URL: ${__asset_url})")
136136
return 1
137137
fi

0 commit comments

Comments
 (0)