projects
/
kamaki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e723be
)
Allow unicode values in HTTP headers
author
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Wed, 19 Feb 2014 11:17:38 +0000
(13:17 +0200)
committer
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Wed, 19 Feb 2014 11:17:38 +0000
(13:17 +0200)
Refs: #5110
kamaki/clients/__init__.py
patch
|
blob
|
history
diff --git
a/kamaki/clients/__init__.py
b/kamaki/clients/__init__.py
index
1773a91
..
bd71283
100644
(file)
--- a/
kamaki/clients/__init__.py
+++ b/
kamaki/clients/__init__.py
@@
-418,7
+418,7
@@
class Client(Logged):
def set_header(self, name, value, iff=True):
"""Set a header 'name':'value'"""
if value is not None and iff:
- self.headers[name] = unicode(value)
+ self.headers[name] = '%s' % value
def set_param(self, name, value=None, iff=True):
if iff: