Merge pull request #3142 from betagouv/frederic/fix_3133_upload

Fixer l’upload
This commit is contained in:
Frederic Merizen 2018-12-07 15:29:16 +01:00 committed by GitHub
commit 6522248801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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'

View file

@ -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)

View file

@ -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'