fix bug when prefix API with http