Skip to content

Commit 1307999

Browse files
set accept, connection, and user-agent headers
1 parent ab709c0 commit 1307999

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libraries/Downloader.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ function handleTarExtraction(filepath: string, extractedPath: string): Promise<v
2424
function getFileDownloadURLRedirect(url: string): Promise<string> {
2525
const options: https.RequestOptions = {
2626
headers: {
27-
'accept': '*/*'
27+
'accept': '*/*',
28+
'connection': 'keep-alive',
29+
"user-agent": 'mysql-memory-server-js'
2830
}
2931
}
3032

0 commit comments

Comments
 (0)