Used rgw_rest_read_all_input instead of a private function

Signed-off-by: Babu Shanmugam <anbu@enovance.com>