fixing r.http code review comments