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

Loading…