mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
Support url-encoding in caps.
This commit is contained in:
parent
dc7e794ee8
commit
0b5f9ff5c3
@ -429,6 +429,7 @@ class TahoeDir (TahoeNode):
|
||||
|
||||
|
||||
def canonicalize_cap(cap):
|
||||
cap = urllib.unquote(cap)
|
||||
i = cap.find('URI:')
|
||||
assert i != -1, 'A cap must contain "URI:...", but this does not: ' + cap
|
||||
return cap[i:]
|
||||
|
Loading…
Reference in New Issue
Block a user