Support url-encoding in caps.

This commit is contained in:
nejucomo 2008-01-12 21:41:07 -07:00
parent dc7e794ee8
commit 0b5f9ff5c3

View File

@ -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:]