diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-02 12:14:48 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-02 12:14:48 -0300 |
commit | 8f55c9670a0547bc4879d2b36affbffbf201e4fc (patch) | |
tree | 73863549c2176255fc90eb928198d8c23dd4627b /src/leap/bitmask/services/__init__.py | |
parent | 5b07b72de0843fa1665bc5ef8da988fb112bc97c (diff) | |
parent | 85103cd2977bee78006dac15cfd33a549f6a39de (diff) |
Merge remote-tracking branch 'chiiph/bug/fix_tests' into develop
Diffstat (limited to 'src/leap/bitmask/services/__init__.py')
-rw-r--r-- | src/leap/bitmask/services/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/__init__.py b/src/leap/bitmask/services/__init__.py index afce72f6..0d74e0e2 100644 --- a/src/leap/bitmask/services/__init__.py +++ b/src/leap/bitmask/services/__init__.py @@ -105,10 +105,12 @@ def download_service_config(provider_config, service_config, service_name = service_config.name service_json = "{0}-service.json".format(service_name) headers = {} - mtime = get_mtime(os.path.join(get_path_prefix(), + mtime = get_mtime(os.path.join(service_config + .get_path_prefix(), "leap", "providers", provider_config.get_domain(), service_json)) + if download_if_needed and mtime: headers['if-modified-since'] = mtime |