check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash

This commit is contained in:
Brian Warner 2008-05-08 18:01:31 -07:00
parent 7323ced8e4
commit 8f4e409677

View 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()