common: always use http server url for internal use

This commit is contained in:
Abdullah Atta
2023-01-16 13:29:35 +05:00
parent a14ccfadce
commit 16e370855f

View File

@@ -44,9 +44,9 @@ namespace Streetwriters.Common
public override string ToString()
{
var url = "";
url += IsSecure ? "https" : "http";
url += "http";
url += $"://{Hostname}";
url += IsSecure || Port == 80 ? "" : $":{Port}";
url += Port == 80 || Port == 443 ? "" : $":{Port}";
return url;
}