fix url parse error for 'ws://domain.com/websocket' pattern
Merge pull request #2904 from edwardzhou/master

closed #2312: WebSocket url parse error for 'ws://domain.com/websocket' pattern