fixing clang warning and error cases in r.http
Merge branch 'next' into sam_2353