Commit 5e38805e by Vedran Karacic Committed by Michael Frey

Encode name and address for SDN check.

parent 5071f8d3
......@@ -88,13 +88,12 @@ class SDNClient(object):
Returns:
dict: SDN API response.
"""
params = urlencode({
'sources': self.sdn_list,
'api_key': self.api_key,
'type': 'individual',
'name': name,
'address': address,
'name': unicode(name).encode('utf-8'),
'address': unicode(address).encode('utf-8'),
'countries': country
})
sdn_check_url = '{api_url}?{params}'.format(
......
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