Merge pull request #3145 from betagouv/fix_cellar

Really fix #3133
This commit is contained in:
gregoirenovel 2018-12-07 17:05:18 +01:00 committed by GitHub
commit 64c45c4789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ module ActiveStorage
@adapter = Cellar::CellarAdapter.new(access_key_id, secret_access_key, bucket)
end
def upload(key, io, checksum: nil)
def upload(key, io, checksum: nil, **)
instrument :upload, key: key, checksum: checksum do
@adapter.session { |s| s.upload(key, io, checksum) }
end

View file

@ -34,7 +34,7 @@ module Cellar
@signer = signer
end
def upload(key, io, checksum: nil, **)
def upload(key, io, checksum)
with_io_length(io) do |io, length|
request = Net::HTTP::Put.new("/#{key}")
request.content_type = 'application/octet-stream'