Skip to content
Snippets Groups Projects
Commit e47e9751 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

GZIP model output

parent 8fa4f0ae
No related branches found
No related tags found
No related merge requests found
......@@ -16,5 +16,6 @@ Any value defined here will override the pom.xml file value but is only applicab
<netbeans.hint.j2eeVersion>1.5</netbeans.hint.j2eeVersion>
<org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>ide</org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>
<netbeans.hint.license>nibio_open_source_license.ftl</netbeans.hint.license>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>WildFly</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
</properties>
</project-shared-configuration>
......@@ -19,7 +19,6 @@
package no.nibio.vips.coremanager.service;
import no.nibio.vips.coremanager.service.ManagerResource;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
......@@ -53,6 +52,7 @@ import no.nibio.vips.entity.ModelConfiguration;
import no.nibio.vips.entity.ModelRunRequest;
import no.nibio.vips.model.Model;
import no.nibio.vips.util.ServletUtil;
import org.jboss.resteasy.annotations.GZIP;
import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;
......@@ -317,6 +317,7 @@ public class ManagerResourceImpl implements ManagerResource{
*/
@POST
@Path("models/{modelId}/run")
@GZIP
@Consumes("application/json")
@Produces("application/json")
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment