def request_body_from(req, body)
      req.body.nil? || req.body.size == 0 ? body : req.body
    end
def request_body_from(req, body)
      req.body.nil? || req.body.size == 0 ? body : req.body
    end
A bit convoluted because post_form uses form_data= to assign the data, so in that case req.body will be empty