feat: add support for default ports on http(s) protocols on downloads.ts

This commit is contained in:
Diogo Valentim
2023-10-26 22:29:03 -03:00
parent 6e250d6f34
commit 3a5cfc6585

View File

@@ -156,7 +156,7 @@ const GetDataFromClient = async (
const url = new URL(app.url);
const options = {
host: url.hostname,
port: url.port,
port: url.port || (url.protocol === 'https:' ? '443' : '80'),
login: findAppProperty(app, 'username'),
hash: findAppProperty(app, 'password'),
};