fix _get_destination with https scheme