seeing some PUT

This commit is contained in:
Paul Schneider
2021-05-14 01:41:16 +01:00
parent c2f38800aa
commit d117f26c77

View File

@ -46,7 +46,7 @@ namespace nuget_host.Controllers
var clientVersionId = Request.Headers["X-NuGet-Client-Version"];
var apiKey = Request.Headers["X-NuGet-ApiKey"];
ViewData["nuget client"] = "nuget {clientVersionId}";
ViewData["clientVersionId"] = clientVersionId;
var files = new List<string>();
ViewData["files"] = files;
@ -60,7 +60,7 @@ namespace nuget_host.Controllers
try
{
files.Add(file.Name);
string initpath = "package.nupkg";
string initpath = file.Name;
using (FileStream fw = new FileStream(initpath, FileMode.Create))
{
file.CopyTo(fw);
@ -96,9 +96,7 @@ namespace nuget_host.Controllers
source.MoveTo(path);
logger.LogWarning($"200: {entry.Name}");
}
}
}
}
catch (Exception ex)