Skip to content

Commit

Permalink
Added gzip hanlding in JettySolrRunner (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshk25 committed Nov 17, 2023
1 parent 2aa767e commit acb887a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ public void lifeCycleFailure(LifeCycle arg0, Throwable arg1) {

gzipHandler.setMinGzipSize(23); // https://github.com/eclipse/jetty.project/issues/4191
gzipHandler.setIncludedMethods("GET");
int gzipInflateSize = Integer.getInteger("jetty.gzip.inflateBufferSize", 0);
if (gzipInflateSize > 0) {
gzipHandler.setInflateBufferSize(gzipInflateSize);
}

server.setHandler(gzipHandler);
}
Expand Down

0 comments on commit acb887a

Please sign in to comment.