Skip to content

Commit 7768a80

Browse files
Omit port 443 in URLs so HTTPS urls are cleaner
1 parent b41e9fa commit 7768a80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.Server/Core/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static string GetBaseUrl(Uri currentUrl, string applicationPath)
2222
var uriBuilder = new UriBuilder(currentUrl);
2323

2424
var repositoryUrl = uriBuilder.Scheme + "://" + uriBuilder.Host;
25-
if (uriBuilder.Port != 80)
25+
if (uriBuilder.Port != 80 && uriBuilder.Port != 443)
2626
{
2727
repositoryUrl += ":" + uriBuilder.Port;
2828
}

0 commit comments

Comments
 (0)