gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: fixes


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: fixes
Date: Thu, 23 Jul 2020 17:36:56 +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 5b72f8b  fixes
5b72f8b is described below

commit 5b72f8bf8070b19b29e0e7f60c5b888a8ff6ea4b
Author: MS <ms@taler.net>
AuthorDate: Thu Jul 23 17:36:51 2020 +0200

    fixes
---
 talermerchantdemos/blog/blog.py           | 2 +-
 talermerchantdemos/httpcommon/__init__.py | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index f23013a..52dba6f 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -32,7 +32,7 @@ from urllib.parse import urljoin
 from cachelib import UWSGICache, SimpleCache
 from taler.util.talerconfig import TalerConfig
 from ..blog.content import ARTICLES, get_article_file, get_image_file
-from .httpcommon import backend_get, backend_post
+from talermerchantdemos.httpcommon import backend_get, backend_post
 
 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
 app = flask.Flask(__name__, template_folder=BASE_DIR)
diff --git a/talermerchantdemos/httpcommon/__init__.py 
b/talermerchantdemos/httpcommon/__init__.py
index 392eaa2..106e731 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -1,4 +1,6 @@
+import flask
 import requests
+from urllib.parse import urljoin
 
 ##
 # Return a error response to the client.
@@ -18,7 +20,7 @@ def err_abort(abort_status_code, **params):
 # @param json the POST's body.
 # @return the backend response (JSON format).
 def backend_post(backend_url, endpoint, json):
-    headers = {"Authorization": "ApiKey " + APIKEY}
+    headers = {"Authorization": "ApiKey sandbox"}
     try:
         resp = requests.post(
             urljoin(backend_url, endpoint), json=json, headers=headers
@@ -51,7 +53,7 @@ def backend_post(backend_url, endpoint, json):
 # @return the JSON response from the backend, or a error response
 #         if something unexpected happens.
 def backend_get(backend_url, endpoint, params):
-    headers = {"Authorization": "ApiKey " + APIKEY}
+    headers = {"Authorization": "ApiKey sandbox"}
     try:
         resp = requests.get(
             urljoin(backend_url, endpoint), params=params, headers=headers

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]