summaryrefslogtreecommitdiff
path: root/talermerchantdemos/httpcommon/__init__.py
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-07-23 18:47:56 +0200
committerMS <ms@taler.net>2020-07-23 18:47:56 +0200
commitc12eb6ea0233445069eb709dfeb0b36636188f63 (patch)
tree21c2bcdec3f8136d26fca7987b1f62ea217dfe5d /talermerchantdemos/httpcommon/__init__.py
parent81f5b9010ccf0b09b3bf7bb461d55111fe08f7c9 (diff)
downloadtaler-merchant-demos-c12eb6ea0233445069eb709dfeb0b36636188f63.tar.gz
taler-merchant-demos-c12eb6ea0233445069eb709dfeb0b36636188f63.tar.bz2
taler-merchant-demos-c12eb6ea0233445069eb709dfeb0b36636188f63.zip
debug
Diffstat (limited to 'talermerchantdemos/httpcommon/__init__.py')
-rw-r--r--talermerchantdemos/httpcommon/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py
index 106e731..df84e99 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -21,9 +21,11 @@ def err_abort(abort_status_code, **params):
# @return the backend response (JSON format).
def backend_post(backend_url, endpoint, json):
headers = {"Authorization": "ApiKey sandbox"}
+ final_url = urljoin(backend_url, endpoint)
+ print("POSTing to: " + final_url)
try:
resp = requests.post(
- urljoin(backend_url, endpoint), json=json, headers=headers
+ final_url, json=json, headers=headers
)
except requests.ConnectionError:
err_abort(500, message="Could not establish connection to backend")