Skip to content

Commit

Permalink
Revert "add possibility to gzip rest responses"
Browse files Browse the repository at this point in the history
This reverts commit ba4a9e9.
Performance trouble with this setup, better setup your reverse proxy to gzip application/json
  • Loading branch information
kosarko committed May 31, 2017
1 parent 57ee0b6 commit 6cdedd1
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package cz.cuni.mff.ufal.dspace.rest;

import org.glassfish.jersey.message.GZipEncoder;
import org.glassfish.jersey.message.filtering.EntityFilteringFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.filter.EncodingFilter;

public class Application extends ResourceConfig{
public Application(){
packages("org.dspace.rest","cz.cuni.mff.ufal.dspace.rest");
register(EntityFilteringFeature.class);
EncodingFilter.enableFor(this, GZipEncoder.class);
}
}

0 comments on commit 6cdedd1

Please sign in to comment.