Commit e144967e authored by Christian Schudt's avatar Christian Schudt Committed by akrherz

WebSocket endpoint should allow null path.

Currently the endpoint is only available via ws://host:port/ws/

It will now also be available via ws://host:port/ws

(note the lack of the trailing slash).

URLs without trailing slash seem to be the standard for BOSH and WebSockets and are also used by XEP-0156.

 This commit increases interoperability.
parent b7179bc4
......@@ -625,7 +625,7 @@ public final class HttpBindManager implements CertificateEventListener, Property
protected Handler createWebsocketHandler()
{
final ServletContextHandler context = new ServletContextHandler( null, "/ws", ServletContextHandler.SESSIONS );
context.setAllowNullPathInfo(true);
// Add the functionality-providers.
context.addServlet( new ServletHolder( new OpenfireWebSocketServlet() ), "/*" );
......
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