diff --git a/CHANGES.txt b/CHANGES.txt index 8be01b43308..1729670afaa 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -710,6 +710,7 @@ Release 0.90.0 - Unreleased HBASE-3272 Remove no longer used options HBASE-3269 HBase table truncate semantics seems broken as "disable" table is now async by default + HBASE-3275 [rest] No gzip/deflate content encoding support IMPROVEMENTS diff --git a/src/main/java/org/apache/hadoop/hbase/rest/Main.java b/src/main/java/org/apache/hadoop/hbase/rest/Main.java index 8e5c9979746..54866b6d3d8 100644 --- a/src/main/java/org/apache/hadoop/hbase/rest/Main.java +++ b/src/main/java/org/apache/hadoop/hbase/rest/Main.java @@ -37,6 +37,7 @@ import java.util.ArrayList; import org.mortbay.jetty.Server; import org.mortbay.jetty.servlet.Context; import org.mortbay.jetty.servlet.ServletHolder; +import org.mortbay.servlet.GzipFilter; import com.sun.jersey.spi.container.servlet.ServletContainer; @@ -132,6 +133,7 @@ public class Main implements Constants { // set up context Context context = new Context(server, "/", Context.SESSIONS); context.addServlet(sh, "/*"); + context.addFilter(GzipFilter.class, "/*", 0); server.start(); server.join();