diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-10-29 13:03:53 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-10-29 13:03:53 -0300 |
commit | dba45ace351caa4c097f1ee1498e164cf4683a4f (patch) | |
tree | 7269328783217abe12cd9e730fa4e564a13c5521 /src/leap/bitmask/services/__init__.py | |
parent | 49db36a361a6fe027f2fffacf52d715b11cbdb52 (diff) | |
parent | c90be9157d5423d055984b354c5712f6873336b8 (diff) |
Merge remote-tracking branch 'ivan/bug/4189_fix-non-ascii-path-problem' into develop
Diffstat (limited to 'src/leap/bitmask/services/__init__.py')
-rw-r--r-- | src/leap/bitmask/services/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/__init__.py b/src/leap/bitmask/services/__init__.py index f9456159..e62277b6 100644 --- a/src/leap/bitmask/services/__init__.py +++ b/src/leap/bitmask/services/__init__.py @@ -19,6 +19,7 @@ Services module. """ import logging import os +import sys from PySide import QtCore @@ -135,8 +136,12 @@ def download_service_config(provider_config, service_config, if token is not None: headers["Authorization"] = 'Token token="{0}"'.format(token) + verify = provider_config.get_ca_cert_path() + if verify: + verify = verify.encode(sys.getfilesystemencoding()) + res = session.get(config_uri, - verify=provider_config.get_ca_cert_path(), + verify=verify, headers=headers, timeout=REQUEST_TIMEOUT, cookies=cookies) |