fix http api