mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack] add remove header if setting directory back to private. Without it directory once public will stay like that forever.
This commit is contained in:
parent
0e7797d1cc
commit
e3d80c408c
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ module Fog
|
|||
def put_container(name, options={})
|
||||
headers = options[:headers] || {}
|
||||
headers['X-Container-Read'] = '.r:*' if options[:public]
|
||||
headers['X-Remove-Container-Read'] = 'x' if options[:public] == false
|
||||
request(
|
||||
:expects => [201, 202],
|
||||
:method => 'PUT',
|
||||
|
|
Loading…
Reference in a new issue