summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 15:05:35 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 15:05:35 +0000
commit1e214747806edf02f50d5a2a7d1685fba1f59cb4 (patch)
treebcdb5a69614aa31ace1d5c53f80d5a376b1995f9
parentcb6a87b26c994a9fcc1b35e7f952663cc3d5dca1 (diff)
The target of the test, the URL, should be saved.
-rw-r--r--lib/custodian/protocoltest/http.rb1
1 files changed, 1 insertions, 0 deletions
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"