Skip to content

Commit d5c9f4e

Browse files
philippthunxiaozhu36
authored andcommitted
Fix "ArgumentError: tried to create Proc object without a block"
1 parent 3207fec commit d5c9f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fog/aliyun/requests/storage/get_object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_object(bucket_name, object_name, options = {}, &block)
3030
end
3131

3232
if block_given?
33-
http_options[:response_block] = Proc.new
33+
http_options[:response_block] = Proc.new {}
3434
end
3535

3636
resources = {

0 commit comments

Comments
 (0)