From 6795eeece9ab889cc1698e3fad6ef53100ac49f8 Mon Sep 17 00:00:00 2001 From: Marc Lennox Date: Sat, 18 Aug 2012 16:43:57 -0700 Subject: [PATCH] Fixed an issue where the code was expecting parameters as a hash when in fact they are previously converted to an array --- lib/google/api_client/reference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google/api_client/reference.rb b/lib/google/api_client/reference.rb index f7d71062e3..a1b82aa841 100644 --- a/lib/google/api_client/reference.rb +++ b/lib/google/api_client/reference.rb @@ -63,7 +63,7 @@ module Google self.headers = options[:headers] || {} if options[:media] self.media = options[:media] - upload_type = parameters['uploadType'] || parameters['upload_type'] + upload_type = self.parameters.find{|a| ['uploadType', 'upload_type'].include?(a[0])}[1] case upload_type when "media" if options[:body] || options[:body_object] -- 2.30.2