Try to detect HttpVersion without calling toUpperCase() for performance reasons