bug fix in http, this will become a module soon