fix call to do_request that passes a hash instead of a string as the body