diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-09-15 23:00:21 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-09-18 15:37:52 +0200 |
commit | 73e1944c876421cccd41206f83d0c5db83722607 (patch) | |
tree | c5b63f5f6e98d3b521823b5b93ec59dccb2cfd4e /src/leap/bitmask/bonafide/session.py | |
parent | 66da85d6c8fcba3f7b0b401cd9b8c6183a061a47 (diff) |
[bug] we need to use 'GET' method to fetch provider configs
The workaround is no needed anymore, if we do 'GET' instead of 'POST' to
fetch all the provider configuration jsons it works smoothly.
- Resolves: #9056
Diffstat (limited to 'src/leap/bitmask/bonafide/session.py')
-rw-r--r-- | src/leap/bitmask/bonafide/session.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/bonafide/session.py b/src/leap/bitmask/bonafide/session.py index a05e2094..711e9ee2 100644 --- a/src/leap/bitmask/bonafide/session.py +++ b/src/leap/bitmask/bonafide/session.py @@ -200,8 +200,8 @@ class Session(object): # Authentication-protected configuration @defer.inlineCallbacks - def fetch_provider_configs(self, uri, path): - config = yield self._request(self._agent, uri) + def fetch_provider_configs(self, uri, path, method='GET'): + config = yield self._request(self._agent, uri, method=method) with open(path, 'w') as cf: cf.write(config) defer.returnValue('ok') |