From b7c24896c9913107b91fb4f544122a5d096f7417 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 23 Jan 2017 09:57:01 -0600 Subject: [PATCH] trying koying's patch for #94 --- resources/lib/dropbox/rest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/dropbox/rest.py b/resources/lib/dropbox/rest.py index 61b8cc6..a590d4d 100644 --- a/resources/lib/dropbox/rest.py +++ b/resources/lib/dropbox/rest.py @@ -412,5 +412,8 @@ def params_to_urlencoded(params): return o.encode('utf8') else: return str(o) - utf8_params = {encode(k): encode(v) for k, v in params.iteritems()} + utf8_params={} + for k, v in params.iteritems(): + utf8_params[encode(k)]= encode(v) + return urllib.urlencode(utf8_params)