Skip to content

Commit 2c2322a

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/dev'
2 parents b41e9fa + fd9d8e9 commit 2c2322a

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Make sure to check the following when opening a pull request:
2+
3+
* If it's a large contribution, please open a regular issue first and discuss with the team
4+
* Make sure the PR targets the `dev` branch
5+
6+
Having that said: thank you for your contribution already!

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
}

src/NuGet.Server/Infrastructure/ServerPackageRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ private void FileSystemChanged(object sender, FileSystemEventArgs e)
639639

640640
// 1) If a .nupkg is dropped in the root, add it as a package
641641
if (String.Equals(Path.GetDirectoryName(e.FullPath), _fileSystemWatcher.Path, StringComparison.OrdinalIgnoreCase)
642-
&& String.Equals(Path.GetExtension(e.Name), "nupkg", StringComparison.OrdinalIgnoreCase))
642+
&& String.Equals(Path.GetExtension(e.Name), ".nupkg", StringComparison.OrdinalIgnoreCase))
643643
{
644644
// When a package is dropped into the server packages root folder, add it to the repository.
645645
AddPackagesFromDropFolder();

src/NuGet.Server/Web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search.
5151
-->
5252
<add key="enableFrameworkFiltering" value="false" />
53+
54+
<!--
55+
When running NuGet.Server in a NAT network, ASP.NET may embed the erver's internal IP address in the V2 feed.
56+
Uncomment the following configuration entry to enable NAT support.
57+
-->
58+
<!-- <add key="aspnet:UseHostHeaderForRequestUrl" value="true" /> -->
5359
</appSettings>
5460
<system.web>
5561
<httpRuntime maxRequestLength="31457280" />

0 commit comments

Comments
 (0)