Merge pull request #1509 from diogovalentte/dev

feat: add support for default ports on http(s) protocols on download.ts
This commit is contained in:
Thomas Camlong
2023-11-01 23:12:16 +01:00
committed by GitHub

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'),
};