fix copy/paste error

This commit is contained in:
James Brumond 2023-08-18 20:32:51 -07:00
parent 9d6cb8d126
commit 5a33737182
Signed by: james
GPG Key ID: E8F2FC44BAA3357A
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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,