Fix https clone, and support http also.