class Patron::Request

def upload_data=(data)

Parameters:
  • data (Hash, #to_s) -- a Hash of form fields to values, or an object that responds to `to_s`
def upload_data=(data)
  @upload_data = case data
  when Hash
    self.multipart ? data : Util.build_query_string_from_hash(data, action == :post)
  else
    data
  end
end