summaryrefslogtreecommitdiff
path: root/lib/custodian/protocol-tests/http.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 10:53:27 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 10:53:27 +0000
commitc8379ec7ab19ec5147b441669e41ddeaff9c287c (patch)
tree60e08a9dcc09c5f4fd4b6f0ce15aeae7944003c1 /lib/custodian/protocol-tests/http.rb
parentc0de01758694e6f0771177f412488712671e7688 (diff)
URL should add a path if missing
Diffstat (limited to 'lib/custodian/protocol-tests/http.rb')
-rwxr-xr-xlib/custodian/protocol-tests/http.rb7
1 files changed, 7 insertions, 0 deletions
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