Commit 82903313 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Make sure all url-params are url-encoded

Refs: #3956
parent 866a5b5e
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment