fix copy/paste error
This commit is contained in:
parent
9d6cb8d126
commit
5a33737182
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -2932,7 +2932,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,
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user