]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash
authorBrian Warner <warner@allmydata.com>
Fri, 9 May 2008 01:01:31 +0000 (18:01 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 9 May 2008 01:01:31 +0000 (18:01 -0700)
src/allmydata/test/check_memory.py

index 5dfc7c94f08b241b2a8506f44880b9b7c6b48607..908e21ecde4b99e3c7ce7943e06b4c830d1e7aa0 100644 (file)
@@ -289,6 +289,9 @@ this file are ignored.
         def _read(res):
             # read the node's URL
             self.webish_url = open(url_file, "r").read().strip()
+            if self.webish_url[-1] == "/":
+                # trim trailing slash, since the rest of the code wants it gone
+                self.webish_url = self.webish_url[:-1]
             f = open(furl_file, "r")
             furl = f.read()
             return furl.strip()