Merge pull request #6 from marclennox/master

Fixing an issue where the input parameters were being referenced as a hash after having been converted to an array of name, value pairs.
This commit is contained in:
Bob Aman 2012-08-19 05:07:16 -07:00
commit 9ba98b63d7
1 changed files with 1 additions and 1 deletions

View File

@ -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 { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
case upload_type
when "media"
if options[:body] || options[:body_object]