Skip to content

Commit e8f3460

Browse files
committed
Merge branch 'caioproiete-omit-port-number-in-url-for-https' into dev
2 parents dd23c69 + 7768a80 commit e8f3460

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)