summaryrefslogtreecommitdiff
path: root/talermerchantdemos/httpcommon/__init__.py
diff options
context:
space:
mode:
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")