seeing some PUT
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user