Skip to content

Commit 565e474

Browse files
change user agent
1 parent 2241541 commit 565e474

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
function getFileDownloadURLRedirect(url: string): Promise<string> {
2525
return new Promise((resolve, reject) => {
26-
const request = https.get(url, response => {
26+
const request = https.get(url, {headers: {"user-agent": 'mysql-memory-server-js'}}, response => {
2727
console.log('Headers:', response.headers)
2828
const statusCode = response.statusCode
2929
const location = response.headers.location

0 commit comments

Comments
 (0)