Skip to content

Commit ee1ada2

Browse files
add extra download header
1 parent 6ad97cd commit ee1ada2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libraries/Downloader.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ function getFileDownloadURLRedirect(url: string): Promise<string> {
2727
'accept': '*/*',
2828
'connection': 'keep-alive',
2929
"user-agent": 'mysql-memory-server-js-net/1.0.0',
30-
// Not too sure why, but the request fails without the below header
31-
// For the request to work, this hello header is required
32-
"hello": "hello"
30+
// Not too sure why, but the request fails without dummy headers
31+
// For the request to work, these headers have been added
32+
"hello": "hello",
33+
"world": "world"
3334
}
3435
}
3536

0 commit comments

Comments
 (0)