seeing some PUT

broken/ef
Paul Schneider 3 years ago
parent c2f38800aa
commit d117f26c77
1 changed files with 2 additions and 4 deletions

@ -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)

Loading…