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

Removed comment.

This commit is contained in:
Rupak Ganguly 2012-10-26 00:18:14 -04:00
parent ec47a70503
commit 0a9fc31f5e
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ module Fog
# #
def head_object(container, object) def head_object(container, object)
response = request({ response = request({
:expects => 200, # should be 204 :expects => 200,
:method => 'HEAD', :method => 'HEAD',
:path => "#{Fog::HP.escape(container)}/#{Fog::HP.escape(object)}" :path => "#{Fog::HP.escape(container)}/#{Fog::HP.escape(object)}"
}, false) }, false)
@ -25,7 +25,7 @@ module Fog
def head_object(container_name, object_name, options = {}) def head_object(container_name, object_name, options = {})
response = get_object(container_name, object_name, options) response = get_object(container_name, object_name, options)
response.body = nil response.body = nil
response.status = 200 # should be 204 response.status = 200
response response
end end

View file

@ -14,7 +14,7 @@ module Fog
path = uri.path path = uri.path
response = shared_request({ response = shared_request({
:expects => 200, # should be 204 :expects => 200,
:method => 'HEAD', :method => 'HEAD',
:path => path :path => path
}, false) }, false)
@ -28,7 +28,7 @@ module Fog
def head_shared_object(shared_object_url) def head_shared_object(shared_object_url)
response = get_shared_object(shared_object_url) response = get_shared_object(shared_object_url)
response.body = nil response.body = nil
response.status = 200 # should be 204 response.status = 200
response response
end end