use GET instead of HEAD
authortom <tom@taco.desk.hq.powerset.com>
Fri, 4 Jan 2008 22:27:44 +0000 (4 14:27 -0800)
committertom <tom@taco.desk.hq.powerset.com>
Fri, 4 Jan 2008 22:27:44 +0000 (4 14:27 -0800)
lib/god/conditions/http_response_code.rb

index e14a507..8184153 100644 (file)
@@ -108,7 +108,7 @@ module God
         
         Net::HTTP.start(self.host, self.port) do |http|
           http.read_timeout = self.timeout
-          response = http.head(self.path)
+          response = http.get(self.path)
         end
         
         actual_response_code = response.code.to_i