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:
e272ec1
)
cleanup
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 28 Aug 2011 07:09:26 +0000
(
03:09
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 28 Aug 2011 07:09:26 +0000
(
03:09
-0400)
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index
1062569
..
2516840
100644
(file)
--- a/
requests/utils.py
+++ b/
requests/utils.py
@@
-30,12
+30,8
@@
def header_expand(headers):
collector = []
if isinstance(headers, dict):
-
- # Assume header-tuple
headers = headers.items()
- # print headers
-
for i, (value, params) in enumerate(headers):
_params = []
@@
-55,6
+51,7
@@
def header_expand(headers):
collector.append(', ')
+ # Remove trailing seperators.
if collector[-1] in (', ', '; '):
del collector[-1]