Skip to content

Commit 52992be

Browse files
committed
chore: lower max redirects
1 parent 0abd494 commit 52992be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/handlerUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const downloadFile = async (url: string, destination: string): Promise<vo
2121
const httpx = url.startsWith('https') ? https : http
2222

2323
await new Promise((resolve, reject) => {
24-
const req = httpx.get(url, { timeout: 10000 }, (response) => {
24+
const req = httpx.get(url, { timeout: 10000, maxRedirects: 1 }, (response) => {
2525
if (response.statusCode < 200 || response.statusCode > 299) {
2626
reject(new Error(`Failed to download ${url}: ${response.statusCode} ${response.statusMessage || ''}`))
2727
return

0 commit comments

Comments
 (0)