Quote all Route params

This commit is contained in:
Gorialis 2017-10-20 05:57:33 +09:00
parent 98a054e19e
commit 6fc2b51dea

View File

@ -53,7 +53,7 @@ class Route:
self.method = method
url = (self.BASE + self.path)
if parameters:
self.url = url.format(**parameters)
self.url = url.format(**{k: _uriquote(v) for k, v in parameters.items()})
else:
self.url = url