fix url parse bug
All checks were successful
Build and push image for doorman-homeassistant / docker (push) Successful in 4s
Build and push Doorman UI / API / docker (push) Successful in 1m23s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 2s

This commit is contained in:
Martin Dimitrov 2024-11-11 19:36:53 -08:00
parent c452ec4b12
commit a76d61f789

View File

@ -17,9 +17,9 @@ async function lambdaFastHttp(url) {
let req; let req;
if (url.startsWith("https://")) { if (url.startsWith("https://")) {
req = https.request(URL.parse(url)); req = https.request(url);
} else { } else {
req = http.request(URL.parse(url)); req = http.request(url);
} }
req.end(null, null, () => { req.end(null, null, () => {
resolve(req); resolve(req);