projects
/
kamaki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
866a5b5
)
Make sure all url-params are url-encoded
author
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 7 Jun 2013 13:39:04 +0000
(16:39 +0300)
committer
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 7 Jun 2013 13:44:57 +0000
(16:44 +0300)
Refs: #3956
kamaki/clients/__init__.py
patch
|
blob
|
history
diff --git
a/kamaki/clients/__init__.py
b/kamaki/clients/__init__.py
index
2415abd
..
bb0eef8
100644
(file)
--- a/
kamaki/clients/__init__.py
+++ b/
kamaki/clients/__init__.py
@@
-357,11
+357,11
@@
class Client(object):
def set_header(self, name, value, iff=True):
"""Set a header 'name':'value'"""
if value is not None and iff:
- self.headers[name] = value
+ self.headers[name] = unicode(value)
def set_param(self, name, value=None, iff=True):
if iff:
- self.params[name] = value
+ self.params[name] = unicode(value)
def request(
self, method, path,