1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Escape the key in the call.

This commit is contained in:
Rupak Ganguly 2012-01-25 18:31:07 -05:00
parent b5ce472af9
commit ae657cd975

View file

@ -6,7 +6,7 @@ module Fog
# List cdn properties for a container
#
# ==== Parameters
# * container<~String> - Name of container to retrieve info for
# * name<~String> - Name of container to retrieve info for
#
# ==== Returns
# * response<~Excon::Response>:
@ -15,11 +15,11 @@ module Fog
# * 'X-Cdn-Uri'<~String> - cdn url for this container
# * 'X-Ttl'<~String> - integer seconds before data expires, defaults to 86400 (1 day)
# * 'X-Log-Retention'<~Boolean> - ?
def head_container(container)
def head_container(name)
response = request(
:expects => 204,
:method => 'HEAD',
:path => container,
:path => escape_name(name),
:query => {'format' => 'json'}
)
response