Skip to content

Commit

Permalink
follow should be the default, but try it anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jun 30, 2024
1 parent 219f9b6 commit e8bde1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function place_binary(uri, targetDir, opts, callback) {
log.http('download', 'proxy agent configured using: "%s"', proxyUrl);
}

fetch(sanitized, { dispatcher: agent })
fetch(sanitized, { dispatcher: agent, redirect: 'follow' })
.then((res) => {
if (!res.ok) {
throw new Error(`response status ${res.status} ${res.statusText} on ${sanitized}`);
Expand Down

0 comments on commit e8bde1b

Please sign in to comment.