mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash
This commit is contained in:
parent
7323ced8e4
commit
8f4e409677
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user