Encode URL params properly into utf-8

This commit is contained in:
Honza Kral
2013-07-14 15:36:49 +02:00
parent 89edf34ec4
commit ab7d12e5de
+1 -1
View File
@@ -19,7 +19,7 @@ def _escape(part):
part = ','.join(part)
if isinstance(part, (type(''), type(u''))):
# mark ',' as safe for nicer url in logs
return quote_plus(part, ',')
return quote_plus(part.encode('utf-8'), ',')
return str(part)
def _escape_param(value):