Properly handle HTTP versions