summaryrefslogtreecommitdiff
path: root/talermerchantdemos
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-05-11 09:55:25 +0200
committerMS <ms@taler.net>2021-05-11 09:55:25 +0200
commit48f569ee079d84570f79fef5a1bfa1599cc9d70c (patch)
tree77d6f48d33913029e413135a9f82acc12bee54f4 /talermerchantdemos
parentd65604647318a95f77970a64bbe5f24905e26b3f (diff)
downloadtaler-merchant-demos-48f569ee079d84570f79fef5a1bfa1599cc9d70c.tar.gz
taler-merchant-demos-48f569ee079d84570f79fef5a1bfa1599cc9d70c.tar.bz2
taler-merchant-demos-48f569ee079d84570f79fef5a1bfa1599cc9d70c.zip
fix condition check
Diffstat (limited to 'talermerchantdemos')
-rw-r--r--talermerchantdemos/httpcommon/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py
index 9708721..6ff4696 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -38,7 +38,7 @@ def exception_handler(func):
@exception_handler
def backend_post(backend_url, endpoint, json, auth_token=None):
headers = dict()
- if auth_token is not None:
+ if auth_token:
headers["Authorization"] = "Bearer " + auth_token
final_url = urljoin(backend_url, endpoint)
print("POSTing to: " + final_url)