mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
some more optimizations
This commit is contained in:
@@ -18,9 +18,7 @@ function https_getter(req_url : string, options : RequestOpts = {}): Promise<Inc
|
|||||||
method : options.method
|
method : options.method
|
||||||
}
|
}
|
||||||
|
|
||||||
let req = https.request(req_options, (response) => {
|
let req = https.request(req_options, resolve)
|
||||||
resolve(response)
|
|
||||||
})
|
|
||||||
req.on('error', (err) => {
|
req.on('error', (err) => {
|
||||||
reject(err)
|
reject(err)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user