Treat the Connection and Upgrade headers case-insensitively, and fail gracefully when they are absent.