better Display

This commit is contained in:
Paul Schneider 2021-08-12 00:38:16 +01:00
commit 74427cc15e
4 changed files with 21 additions and 5 deletions

View file

@ -163,6 +163,11 @@ namespace isn.Controllers
);
FileInfo pkgfi = new FileInfo(pkgpath);
if (!pkgfi.Exists)
{
return BadRequest("!pkgfi.Exists");
}
return File(pkgfi.OpenRead(), "application/zip; charset=binary");
}
@ -179,6 +184,11 @@ namespace isn.Controllers
id, lower, $"{idf}.{lowerf}.nuspec");
FileInfo pkgfi = new FileInfo(pkgpath);
if (!pkgfi.Exists)
{
return BadRequest("!pkgfi.Exists");
}
return File(pkgfi.OpenRead(), "text/xml; charset=utf-8");
}
}