Skip to content
Browse files

Fix exception on single part uploads

  • Loading branch information...
1 parent e89b183 commit 8d94b98222f1411c254d42482189e2df87063647 @artem-mindrov artem-mindrov committed Jan 22, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/s3_multipart/transfer_helpers.rb
View
2 lib/s3_multipart/transfer_helpers.rb
@@ -23,7 +23,7 @@ def initiate(options)
end
def sign_batch(options)
- parts = options[:content_lengths].split('-').each_with_index.map do |len, i|
+ parts = options[:content_lengths].to_s.split('-').each_with_index.map do |len, i|
sign_part(options.merge!({content_length: len, part_number: i+1}))
end
end

0 comments on commit 8d94b98

Please sign in to comment.
Something went wrong with that request. Please try again.