diff --git a/pypodio2/transport.py b/pypodio2/transport.py index 2b8eee9..8aea41c 100644 --- a/pypodio2/transport.py +++ b/pypodio2/transport.py @@ -40,7 +40,7 @@ def __init__(self, login, password, key, secret, domain): 'client_secret': secret, 'username': login, 'password': password} - h = Http(disable_ssl_certificate_validation=True) + h = Http() headers = {'content-type': 'application/x-www-form-urlencoded'} response, data = h.request(domain + "/oauth/token", "POST", urlencode(body), headers=headers) @@ -58,7 +58,7 @@ def __init__(self, app_id, app_token, key, secret, domain): 'client_secret': secret, 'app_id': app_id, 'app_token': app_token} - h = Http(disable_ssl_certificate_validation=True) + h = Http() headers = {'content-type': 'application/x-www-form-urlencoded'} response, data = h.request(domain + "/oauth/token", "POST", urlencode(body), headers=headers) @@ -108,7 +108,7 @@ def __init__(self, url, headers_factory): self._attribute_stack = [] self._method = "GET" self._posts = [] - self._http = Http(disable_ssl_certificate_validation=True) + self._http = Http() self._params = {} self._url_template = '%(domain)s/%(generated_url)s' self._stack_collapser = "/".join