add doseq to urlencode in model._encode_params to enable list as dict value
authorXu Pan <cqpanxu@gmail.com>
Sun, 26 Jun 2011 05:32:19 +0000 (13:32 +0800)
committerXu Pan <cqpanxu@gmail.com>
Sun, 26 Jun 2011 05:32:19 +0000 (13:32 +0800)
AUTHORS
requests/models.py

diff --git a/AUTHORS b/AUTHORS
index 8493a687baf70228b07f36a8585187c32e3cd22d..1f7c743fd9998f185eb8dd4cd338fdd54ec37fbd 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -26,4 +26,5 @@ Patches and Suggestions
 - Richard Boulton
 - Miguel Olivares <miguel@moliware.com>
 - Alberto Paro
-- Jérémy Bethmont
\ No newline at end of file
+- Jérémy Bethmont
+- 潘旭 (Xu Pan)
index 8e6080194ff85652f69f66b35d2b456e28d0e1e3..9b8f614f63fd221a1856af7bcf7f6b3cc2e01a19 100644 (file)
@@ -230,7 +230,7 @@ class Request(object):
             for (k, v) in data.items():
                 result[k.encode('utf-8') if isinstance(k, unicode) else k] \
                      = v.encode('utf-8') if isinstance(v, unicode) else v
-            return result, urllib.urlencode(result)
+            return result, urllib.urlencode(result, doseq=True)
         else:
             return data, data