tweak so handy proxy server works
This commit is contained in:
parent
fa7364ac1b
commit
53f2a4f62b
|
@ -33,10 +33,10 @@ public class AsyncProxyServer
|
||||||
ServletHandler handler=new ServletHandler();
|
ServletHandler handler=new ServletHandler();
|
||||||
server.setHandler(handler);
|
server.setHandler(handler);
|
||||||
|
|
||||||
FilterHolder gzip = handler.addFilterWithMapping("org.eclipse.jetty.servlet.GzipFilter","/*",0);
|
//FilterHolder gzip = handler.addFilterWithMapping("org.eclipse.jetty.servlets.GzipFilter","/*",0);
|
||||||
gzip.setAsyncSupported(true);
|
//gzip.setAsyncSupported(true);
|
||||||
gzip.setInitParameter("minGzipSize","256");
|
//gzip.setInitParameter("minGzipSize","256");
|
||||||
ServletHolder proxy = handler.addServletWithMapping("org.eclipse.proxy.AsyncProxyServlet","/");
|
ServletHolder proxy = handler.addServletWithMapping("org.eclipse.jetty.servlets.ProxyServlet","/");
|
||||||
proxy.setAsyncSupported(true);
|
proxy.setAsyncSupported(true);
|
||||||
|
|
||||||
server.start();
|
server.start();
|
||||||
|
|
Loading…
Reference in New Issue