From: Brian Warner Date: Fri, 9 May 2008 01:01:31 +0000 (-0700) Subject: check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash X-Git-Tag: allmydata-tahoe-1.1.0~139 X-Git-Url: https://git.rkrishnan.org/frontends/copyable.html?a=commitdiff_plain;h=8f4e4096776271dac7f938acc54d0f4dc6ee0f75;p=tahoe-lafs%2Ftahoe-lafs.git check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash --- diff --git a/src/allmydata/test/check_memory.py b/src/allmydata/test/check_memory.py index 5dfc7c94..908e21ec 100644 --- a/src/allmydata/test/check_memory.py +++ b/src/allmydata/test/check_memory.py @@ -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()