Fixes to HTTP WebSocket handshake callback.