From 1e214747806edf02f50d5a2a7d1685fba1f59cb4 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 15:05:35 +0000 Subject: The target of the test, the URL, should be saved. --- lib/custodian/protocoltest/http.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 11f4bff..ad9e88d 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -55,6 +55,7 @@ module Custodian # Save the URL # @url = line.split( /\s+/)[0] + @host = @url if ( @url !~ /^https?:/ ) raise ArgumentError, "The target wasn't an URL" -- cgit v1.2.1