fix bugs of http protocol, adjust repo