class Patron::Request

def upload_data=(data)

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