Skip to content

Commit 88b94b8

Browse files
disable redirects
1 parent e61d70e commit 88b94b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function handleTarExtraction(filepath: string, extractedPath: string): Promise<v
2323
}
2424

2525
async function getFileDownloadURLRedirect(url: string): Promise<string> {
26-
const response = await axios.get(url);
26+
const response = await axios.get(url, {maxRedirects: 0});
2727

2828
const statusCode = response.status
2929
const location = response.headers.location

0 commit comments

Comments
 (0)