[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: debug
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: debug |
Date: |
Thu, 23 Jul 2020 18:48:01 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new c12eb6e debug
c12eb6e is described below
commit c12eb6ea0233445069eb709dfeb0b36636188f63
Author: MS <ms@taler.net>
AuthorDate: Thu Jul 23 18:47:56 2020 +0200
debug
---
talermerchantdemos/donations/donations.py | 1 -
talermerchantdemos/httpcommon/__init__.py | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/talermerchantdemos/donations/donations.py
b/talermerchantdemos/donations/donations.py
index 3806d45..be9d669 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -91,7 +91,6 @@ def backend_instanced_get(instance, endpoint, params):
# @return the backend response (JSON format).
def backend_instanced_post(instance, endpoint, json):
backend_url = urljoin(BACKEND_BASE_URL, f"instances/{instance}/")
- print("POSTing to " + backend_url)
return backend_post(backend_url, endpoint, json)
##
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")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.