Fixed an issue where the code was expecting parameters as a hash when in fact they are previously converted to an array
This commit is contained in:
parent
e77169a7f4
commit
6795eeece9
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue