some update (if header key is non-unicode comformant)

This commit is contained in:
Miroslav Stampar
2011-02-25 09:43:04 +00:00
parent 2bbbc9a41e
commit 63b8156c00
2 changed files with 8 additions and 3 deletions

View File

@@ -158,7 +158,8 @@ class Connect:
headers[key] = item
for key, item in headers.items():
headers[key] = unicodeToSafeHTMLValue(item)
del headers[key]
headers[unicodeToSafeHTMLValue(key)] = unicodeToSafeHTMLValue(item)
post = unicodeToSafeHTMLValue(post)