diff options
author | cce <devnull@localhost> | 2006-01-06 19:27:26 +0000 |
---|---|---|
committer | cce <devnull@localhost> | 2006-01-06 19:27:26 +0000 |
commit | e74273a11b048ec1f4c4ed0a6712e15376d15b97 (patch) | |
tree | e7b9d27656c2f4864b68619cb7d048b6de0c4132 /paste/httpheaders.py | |
parent | b238d05843beedef385a3a57b6baf345e0006e35 (diff) | |
download | paste-e74273a11b048ec1f4c4ed0a6712e15376d15b97.tar.gz |
- py2.3 compatibility fix as reported by Ben Bangert
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r-- | paste/httpheaders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py index 67a904d..7bd415a 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -580,8 +580,8 @@ def normalize_headers(response_headers, strict=True): (key,val) = response_headers[idx] head = get_header(key, strict) if not head: - newhead = '-'.join(x.capitalize() for x in \ - key.replace("_","-").split("-")) + newhead = '-'.join([x.capitalize() for x in \ + key.replace("_","-").split("-")]) response_headers[idx] = (newhead,val) category[newhead] = 4 continue |