websockets: Test and handle lack of Upgrade header