1
0
Fork 0
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:
Piotr Kedziora 2014-10-15 18:56:30 +02:00
parent 0e7797d1cc
commit e3d80c408c

View file

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