added nim compilation task to sbt deploy task

switched to fake form with POST method for file download
This commit is contained in:
2017-09-28 22:11:29 +02:00
parent 7de186084d
commit ce06721e79
5 changed files with 43 additions and 22 deletions

View File

@@ -363,8 +363,10 @@ public class PacmanWebService
@POST
@Path("/downloadTar")
@Produces("application/x-tar")
public Response downloadTar(List<String> files)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public Response downloadTar(@FormParam("pkgs") String formData)
{
String[] files = formData.split(" ");
for(String fname : files)
{
if(!ctx.getFile(fname).exists()) throw new NotFoundException(String.format("Package file '%s' does not exist", fname));