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:
2fa180e
)
shortcut strings
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 28 Aug 2011 07:22:20 +0000
(
03:22
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 28 Aug 2011 07:22:20 +0000
(
03:22
-0400)
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index 25168400c74ad75b9a50756ca1f66ebecdd5b628..8db2cb55c9f3141828e4850118683bf803693ed2 100644
(file)
--- a/
requests/utils.py
+++ b/
requests/utils.py
@@
-32,6
+32,9
@@
def header_expand(headers):
if isinstance(headers, dict):
headers = headers.items()
+ elif isinstance(headers, basestring):
+ return headers
+
for i, (value, params) in enumerate(headers):
_params = []