fixing clang warning and error cases in r.http