From 7d1230c008e86bd989b6875b3cd3901f38f4ff75 Mon Sep 17 00:00:00 2001 From: Nathan Sutton Date: Tue, 29 Mar 2011 15:58:32 -0500 Subject: [PATCH] Rackspace Storage's head_object method uses the HEAD HTTP method, not GET --- lib/fog/storage/requests/rackspace/head_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/storage/requests/rackspace/head_object.rb b/lib/fog/storage/requests/rackspace/head_object.rb index 640ffc6ca..5c84166b1 100644 --- a/lib/fog/storage/requests/rackspace/head_object.rb +++ b/lib/fog/storage/requests/rackspace/head_object.rb @@ -12,7 +12,7 @@ module Fog def head_object(container, object) response = request({ :expects => 200, - :method => 'GET', + :method => 'HEAD', :path => "#{URI.escape(container)}/#{URI.escape(object)}" }, false) response