fix copy/paste error
This commit is contained in:
2
index.js
2
index.js
@@ -79,7 +79,7 @@ async function http_req(method, url_str, headers, body) {
|
||||
const path = url.pathname + (url.search || '');
|
||||
const port = url.port ? parseInt(url.port, 10) : (url.protocol === 'https:' ? 443 : 80);
|
||||
|
||||
return new Promise<HttpResult>((resolve, reject) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = make_request({
|
||||
method: method,
|
||||
protocol: url.protocol,
|
||||
|
||||
Reference in New Issue
Block a user