From e57ff6357ea8e228577e1e47ddc1a28ba5dcdbc0 Mon Sep 17 00:00:00 2001 From: Greg McGuire Date: Thu, 23 Jul 2015 09:35:21 -0400 Subject: [PATCH 1/2] transport.py: Don't disable SSL cert validation This is basically cherry-picks https://github.com/podio/podio-py/pull/40. Original commit message from @gmcguire: > Allow normal SSL certificate checking > > This fixes issue #27. As far as I can tell api.podio.com has a perfectly valid SSL certificate. Closes https://podio.com/easyesicom/feature-roadmap/apps/bugs/items/22339. --- pypodio2/transport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypodio2/transport.py b/pypodio2/transport.py index ef6e238..11d865d 100644 --- a/pypodio2/transport.py +++ b/pypodio2/transport.py @@ -38,7 +38,7 @@ def __init__(self, key, secret, domain): self.domain = domain def token_request(self, body): - h = Http(disable_ssl_certificate_validation=True) + h = Http() headers = {'content-type': 'application/x-www-form-urlencoded'} response, data = h.request(self.domain + "/oauth/token", "POST", urlencode(body), headers=headers) @@ -125,7 +125,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 From 15500079b71234ab2580e63ca0981e71b0b40cd2 Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Thu, 8 Dec 2022 19:41:50 -0500 Subject: [PATCH 2/2] setup.py: Prepare for the `0.2.1+everlaw2` release :^) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0b6df1e..34da43a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="pypodio2", - version="0.2.1+everlaw1", + version="0.2.1+everlaw2rc1", description="Python wrapper for the Podio API", author="Podio", author_email="mail@podio.com",