Really fix #3133
This commit is contained in:
parent
c9d34c0e86
commit
35fc41fb9f
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ module ActiveStorage
|
||||||
@adapter = Cellar::CellarAdapter.new(access_key_id, secret_access_key, bucket)
|
@adapter = Cellar::CellarAdapter.new(access_key_id, secret_access_key, bucket)
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload(key, io, checksum: nil)
|
def upload(key, io, checksum: nil, **)
|
||||||
instrument :upload, key: key, checksum: checksum do
|
instrument :upload, key: key, checksum: checksum do
|
||||||
@adapter.session { |s| s.upload(key, io, checksum) }
|
@adapter.session { |s| s.upload(key, io, checksum) }
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,7 +34,7 @@ module Cellar
|
||||||
@signer = signer
|
@signer = signer
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload(key, io, checksum: nil, **)
|
def upload(key, io, checksum)
|
||||||
with_io_length(io) do |io, length|
|
with_io_length(io) do |io, length|
|
||||||
request = Net::HTTP::Put.new("/#{key}")
|
request = Net::HTTP::Put.new("/#{key}")
|
||||||
request.content_type = 'application/octet-stream'
|
request.content_type = 'application/octet-stream'
|
||||||
|
|
Loading…
Reference in a new issue