Quote all Route params
This commit is contained in:
parent
98a054e19e
commit
6fc2b51dea
@ -53,7 +53,7 @@ class Route:
|
|||||||
self.method = method
|
self.method = method
|
||||||
url = (self.BASE + self.path)
|
url = (self.BASE + self.path)
|
||||||
if parameters:
|
if parameters:
|
||||||
self.url = url.format(**parameters)
|
self.url = url.format(**{k: _uriquote(v) for k, v in parameters.items()})
|
||||||
else:
|
else:
|
||||||
self.url = url
|
self.url = url
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user