Skip to content

Commit

Permalink
Don't disable SSL validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Mar 14, 2016
1 parent d5f6add commit b710476
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypodio2/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, key, secret, refresh_token, domain):
'client_id': key,
'client_secret': secret,
'refresh_token': refresh_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)
Expand Down Expand Up @@ -68,7 +68,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)
Expand All @@ -86,7 +86,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)
Expand Down Expand Up @@ -136,7 +136,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
Expand Down

0 comments on commit b710476

Please sign in to comment.