summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad/client/_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/leap/soledad/client/_http.py')
-rw-r--r--client/src/leap/soledad/client/_http.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/_http.py b/client/src/leap/soledad/client/_http.py
index ba6f9a27..2a6b9e39 100644
--- a/client/src/leap/soledad/client/_http.py
+++ b/client/src/leap/soledad/client/_http.py
@@ -67,8 +67,7 @@ class PinnedTokenAgent(Agent):
def request(self, method, uri, headers=None, bodyProducer=None):
# authenticate the request
- if not headers:
- headers = Headers()
+ headers = headers or Headers()
headers.addRawHeader('Authorization', self._creds)
# perform the authenticated request
return Agent.request(