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 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)
|
||||||
|
Reference in New Issue
Block a user