Skip to content

Commit

Permalink
Port fix for #167
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Jan 25, 2012
1 parent 273e211 commit 34c0b7f
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ public final void dispatch(final HttpServletRequest request) throws IOException

String pathInfo = request.getPathInfo();
String requestURI = request.getRequestURI();
if (atmosphereServlet.getAtmosphereConfig().getWebServerName().toLowerCase().indexOf("glassfish") != -1) {
try {
pathInfo = pathInfo.substring(pathInfo.indexOf("/", 1));
requestURI = requestURI.substring(requestURI.indexOf("/", 1));
} catch (IndexOutOfBoundsException e) {
// Jersey will not work.
logger.warn("Unable to patch GlassFish WebSocket http://java.net/jira/browse/GRIZZLY-1114");
}
}

AtmosphereResponse wsr = new AtmosphereResponse<WebSocket>(webSocket, webSocketProtocol, request);
AtmosphereRequest r = new AtmosphereRequest.Builder()
Expand Down

0 comments on commit 34c0b7f

Please sign in to comment.