lib/benchmark/http/command/spider.rb in benchmark-http-0.4.0 vs lib/benchmark/http/command/spider.rb in benchmark-http-0.4.1
- old
+ new
@@ -88,10 +88,10 @@
fetched << url
request_uri = url.request_uri
response = timeout(10) do
- client.head(request_uri)
+ client.head(request_uri).tap(&:read)
end
log("HEAD", url, response)
if response.redirection?