Merge branch 'master' of github.com:google/google-api-ruby-client
This commit is contained in:
commit
2f630f6c1d
|
@ -64,7 +64,7 @@ module Google
|
||||||
self.headers = options[:headers] || {}
|
self.headers = options[:headers] || {}
|
||||||
if options[:media]
|
if options[:media]
|
||||||
self.media = options[:media]
|
self.media = options[:media]
|
||||||
upload_type = parameters['uploadType'] || parameters['upload_type']
|
upload_type = self.parameters.find { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
|
||||||
case upload_type
|
case upload_type
|
||||||
when "media"
|
when "media"
|
||||||
if options[:body] || options[:body_object]
|
if options[:body] || options[:body_object]
|
||||||
|
|
Loading…
Reference in New Issue