Commit 1f22b03e authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #639 from Redor/master

OF-1180: BOSH endpoints redirect all the requests with the trailing slash
parents e3317634 cd13bf85
...@@ -542,6 +542,7 @@ public final class HttpBindManager { ...@@ -542,6 +542,7 @@ public final class HttpBindManager {
initializers.add(new ContainerInitializer(new JasperInitializer(), null)); initializers.add(new ContainerInitializer(new JasperInitializer(), null));
context.setAttribute("org.eclipse.jetty.containerInitializers", initializers); context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
context.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager()); context.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());
context.setAllowNullPathInfo(true);
context.addServlet(new ServletHolder(new HttpBindServlet()),"/*"); context.addServlet(new ServletHolder(new HttpBindServlet()),"/*");
if (isHttpCompressionEnabled()) { if (isHttpCompressionEnabled()) {
Filter gzipFilter = new AsyncGzipFilter() { Filter gzipFilter = new AsyncGzipFilter() {
...@@ -573,6 +574,7 @@ public final class HttpBindManager { ...@@ -573,6 +574,7 @@ public final class HttpBindManager {
initializers.add(new ContainerInitializer(new JasperInitializer(), null)); initializers.add(new ContainerInitializer(new JasperInitializer(), null));
context.setAttribute("org.eclipse.jetty.containerInitializers", initializers); context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
context.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager()); context.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());
context.setAllowNullPathInfo(true);
context.addServlet(new ServletHolder(new FlashCrossDomainServlet()),""); context.addServlet(new ServletHolder(new FlashCrossDomainServlet()),"");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment