projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3491761
)
Allow passing POST data with a list of 2-tuples.
author
David McKeone
<david@artsman.com>
Wed, 16 Jan 2013 18:53:24 +0000
(11:53 -0700)
committer
David McKeone
<david@artsman.com>
Wed, 16 Jan 2013 18:53:24 +0000
(11:53 -0700)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
5202e6f
..
f42bc72
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-342,6
+342,7
@@
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
is_stream = all([
hasattr(data, '__iter__'),
not isinstance(data, basestring),
+ not isinstance(data, list),
not isinstance(data, dict)
])