lib/fog/aws/requests/storage/put_bucket_lifecycle.rb in fog-aws-0.9.3 vs lib/fog/aws/requests/storage/put_bucket_lifecycle.rb in fog-aws-0.9.4
- old
+ new
@@ -84,10 +84,10 @@
body = builder.to_xml
body.gsub! /<([^<>]+)\/>/, '<\1></\1>'
request({
:body => body,
:expects => 200,
- :headers => {'Content-MD5' => Base64.encode64(Digest::MD5.digest(body)).chomp!,
+ :headers => {'Content-MD5' => Base64.encode64(OpenSSL::Digest::MD5.digest(body)).chomp!,
'Content-Type' => 'application/xml'},
:bucket_name => bucket_name,
:method => 'PUT',
:query => {'lifecycle' => nil}
})