Merge pull request #3142 from betagouv/frederic/fix_3133_upload
Fixer l’upload
This commit is contained in:
commit
6522248801
3 changed files with 4 additions and 4 deletions
2
Gemfile
2
Gemfile
|
@ -56,7 +56,7 @@ gem 'carrierwave'
|
|||
gem 'carrierwave-i18n'
|
||||
gem 'copy_carrierwave_file'
|
||||
gem 'fog-openstack'
|
||||
gem 'activestorage-openstack', git: 'https://github.com/fredZen/activestorage-openstack.git', branch: 'frederic/bump-fog-openstack'
|
||||
gem 'activestorage-openstack', git: 'https://github.com/fredZen/activestorage-openstack.git', branch: 'frederic/fix_upload_signature'
|
||||
|
||||
gem 'pg'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
GIT
|
||||
remote: https://github.com/fredZen/activestorage-openstack.git
|
||||
revision: 8b64c113223e9ec431b220c9350866c4147b88c3
|
||||
branch: frederic/bump-fog-openstack
|
||||
revision: c71d5107a51701eab9d9267dd0000e6c1cf3e39a
|
||||
branch: frederic/fix_upload_signature
|
||||
specs:
|
||||
activestorage-openstack (0.5.0)
|
||||
fog-openstack (~> 1.0)
|
||||
|
|
|
@ -34,7 +34,7 @@ module Cellar
|
|||
@signer = signer
|
||||
end
|
||||
|
||||
def upload(key, io, checksum)
|
||||
def upload(key, io, checksum: nil, **)
|
||||
with_io_length(io) do |io, length|
|
||||
request = Net::HTTP::Put.new("/#{key}")
|
||||
request.content_type = 'application/octet-stream'
|
||||
|
|
Loading…
Reference in a new issue