From ece857c064e54d4e85f639c64793c7161e8cf58a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 10:53:27 +0000 Subject: URL should add a path if missing --- lib/custodian/protocol-tests/http.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/custodian/protocol-tests/http.rb') diff --git a/lib/custodian/protocol-tests/http.rb b/lib/custodian/protocol-tests/http.rb index 2a60063..e1e0ad0 100755 --- a/lib/custodian/protocol-tests/http.rb +++ b/lib/custodian/protocol-tests/http.rb @@ -127,6 +127,13 @@ class HTTPTest response = nil + # + # Ensure we have a trailing "/" + # + if ( url.path.empty? ) + url.path = "/" + end + if nil == url.query response = http.start { http.get(url.path) } else -- cgit v1.2.1