Skip to content

Commit

Permalink
fix: proxy-agent on stream too
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jul 26, 2024
1 parent bc5c5c3 commit 3f2bf31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ const downloadAndExtract = async (
version,
}),
)
const stream = got.stream(gzUrl)

debug(`Streaming ${gzUrl} to ${output}`)
const stream = got.stream(gzUrl, {
agent: {https: new ProxyAgent()},
})

stream.pause()

Expand Down

0 comments on commit 3f2bf31

Please sign in to comment.