projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7323ced
)
check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash
author
Brian Warner
<warner@allmydata.com>
Fri, 9 May 2008 01:01:31 +0000
(18:01 -0700)
committer
Brian Warner
<warner@allmydata.com>
Fri, 9 May 2008 01:01:31 +0000
(18:01 -0700)
src/allmydata/test/check_memory.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/check_memory.py
b/src/allmydata/test/check_memory.py
index 5dfc7c94f08b241b2a8506f44880b9b7c6b48607..908e21ecde4b99e3c7ce7943e06b4c830d1e7aa0 100644
(file)
--- 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()