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 'carrierwave-i18n'
|
||||||
gem 'copy_carrierwave_file'
|
gem 'copy_carrierwave_file'
|
||||||
gem 'fog-openstack'
|
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'
|
gem 'pg'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
GIT
|
GIT
|
||||||
remote: https://github.com/fredZen/activestorage-openstack.git
|
remote: https://github.com/fredZen/activestorage-openstack.git
|
||||||
revision: 8b64c113223e9ec431b220c9350866c4147b88c3
|
revision: c71d5107a51701eab9d9267dd0000e6c1cf3e39a
|
||||||
branch: frederic/bump-fog-openstack
|
branch: frederic/fix_upload_signature
|
||||||
specs:
|
specs:
|
||||||
activestorage-openstack (0.5.0)
|
activestorage-openstack (0.5.0)
|
||||||
fog-openstack (~> 1.0)
|
fog-openstack (~> 1.0)
|
||||||
|
|
|
@ -34,7 +34,7 @@ module Cellar
|
||||||
@signer = signer
|
@signer = signer
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload(key, io, checksum)
|
def upload(key, io, checksum: nil, **)
|
||||||
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