some more optimizations
This commit is contained in:
parent
9a777e30ff
commit
614154b065
@ -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)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user