summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/http.rb
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
commit763aeecb686c59d9f8e25ddfacd43a0f2ed4881d (patch)
treebcdb5a69614aa31ace1d5c53f80d5a376b1995f9 /lib/custodian/protocoltest/http.rb
parent9b8d86492b1f3dfff74c801e9b075e02efc7a6d7 (diff)
The target of the test, the URL, should be saved.
Diffstat (limited to 'lib/custodian/protocoltest/http.rb')
-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"