core: Fix for problem with missing user-agent header from websocket connections.