fix(core): update

This commit is contained in:
Philipp Kunz 2021-04-12 20:09:53 +00:00
parent fced2e845e
commit 31922529ae

View File

@ -36,6 +36,10 @@ export class Smarturl {
console.log(`inferring port 443 for "https:"`);
parsedUrl.port = '443';
}
if (!parsedUrl.port && parsedUrl.protocol === 'http:') {
console.log(`inferring port 80 for "http:"`);
parsedUrl.port = '80';
}
return parsedUrl;
}
}