Skip to content

Commit

Permalink
Added gzip hanlding in JettySolrRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshk25 committed Nov 16, 2023
1 parent 05572c7 commit bf6de11
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 bf6de11

Please sign in to comment.