Skip to content

Commit

Permalink
Fixed an issue where the code was expecting parameters as a hash when…
Browse files Browse the repository at this point in the history
… in fact they are previously converted to an array
  • Loading branch information
marclennox committed Aug 18, 2012
1 parent e77169a commit 6795eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google/api_client/reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def initialize(options={})
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]
Expand Down

0 comments on commit 6795eee

Please sign in to comment.