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