feat: add support for default ports on http(s) protocols on downloads.ts
This commit is contained in:
1 parent
6e250d6f34
commit
3a5cfc6585
1 file changed
+1
-1
@@ -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'),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user