Skip to content

Commit

Permalink
add doseq to urlencode in model._encode_params to enable list as dict…
Browse files Browse the repository at this point in the history
… value
  • Loading branch information
cqpx committed Jun 26, 2011
1 parent 787110c commit d2ff0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Expand Up @@ -26,4 +26,5 @@ Patches and Suggestions
- Richard Boulton
- Miguel Olivares <miguel@moliware.com>
- Alberto Paro
- Jérémy Bethmont
- Jérémy Bethmont
- 潘旭 (Xu Pan)
2 changes: 1 addition & 1 deletion requests/models.py
Expand Up @@ -230,7 +230,7 @@ def _encode_params(data):
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

Expand Down

0 comments on commit d2ff0f4

Please sign in to comment.