From 52f10e5024192d40789695b00e0cb10613f7ae6e Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 26 Nov 2012 12:32:12 +0000 Subject: Show failing lines. --- lib/custodian/protocoltest/http.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 18fb694..265c1ea 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -1,4 +1,4 @@ -require 'timeout' + # @@ -58,7 +58,7 @@ module Custodian @host = @url if ( @url !~ /^https?:/ ) - raise ArgumentError, "The target wasn't an URL" + raise ArgumentError, "The target wasn't an URL: #{line}" end # @@ -126,6 +126,7 @@ module Custodian c = Curl::Easy.new(@url) c.follow_location = true c.max_redirects = 10 + c.ssl_verify_host = false c.timeout = 20 c.perform @status = c.response_code @@ -140,7 +141,7 @@ module Custodian @error = "Too many redirections (more than 10)" return false rescue => x - @error = "Exception: #{x}" + @error = "Exception: #{x}" return false end end -- cgit v1.2.1