Bug 362223 - Websocket client fails to send query parameters

This commit is contained in:
Joakim Erdfelt 2011-10-27 10:37:54 -07:00
parent 464c297c01
commit 903c5dcbbf
1 changed files with 8 additions and 1 deletions

View File

@ -315,8 +315,15 @@ public class WebSocketClientFactory extends AggregateLifeCycle
}); });
String path=_future.getURI().getPath(); String path=_future.getURI().getPath();
if (path==null || path.length()==0) if (path==null || path.length()==0)
{
path="/"; path="/";
}
if(_future.getURI().getRawQuery() != null)
{
path += "?" + _future.getURI().getRawQuery();
}
String origin = future.getOrigin(); String origin = future.getOrigin();