From 59268b265dcaa5b17778c309d23004def28e82ae Mon Sep 17 00:00:00 2001 From: Greg McGuire Date: Thu, 23 Jul 2015 09:35:21 -0400 Subject: [PATCH] Allow normal SSL certificate checking This fixes issue #27. As far as I can tell api.podio.com has a perfectly valid SSL certificate. --- pypodio2/transport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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