Skip to content

Commit

Permalink
Fix for #755
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Dec 6, 2012
1 parent f19106c commit 0ec6e5b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public void onConnect(WebSocket w) {
if (r.getPathInfo() != null && r.getPathInfo().startsWith(r.getContextPath())) {
r.servletPath(r.getPathInfo().substring(r.getContextPath().length()));
r.pathInfo(null);
} else if (r.getPathInfo() == null) {
String uri = r.getRequestURI();
String pathInfo = uri.substring(uri.indexOf(r.getServletPath()) + r.getServletPath().length());
r.pathInfo(pathInfo);
}
} catch (Exception e) {
// Whatever exception occurs skip it
Expand Down

0 comments on commit 0ec6e5b

Please sign in to comment.