added nim compilation task to sbt deploy task
switched to fake form with POST method for file download
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user