[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: set cookie in the ri
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: set cookie in the right place |
Date: |
Wed, 19 Aug 2020 12:41:53 +0200 |
This is an automated email from the git hooks/post-receive script.
dold 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 ae73a85 set cookie in the right place
ae73a85 is described below
commit ae73a85e2047b405d1fe8cf78aa5556673eec0d5
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Wed Aug 19 16:11:45 2020 +0530
set cookie in the right place
---
talermerchantdemos/blog/blog.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index 6c4c3ec..77d8813 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -218,7 +218,6 @@ def article(article_name, data=None):
)
order_resp = backend_post(BACKEND_URL, "private/orders",
dict(order=order))
order_id = order_resp["order_id"]
- flask.request.set_cookie("order_id", path=f"/essay/{article_name}")
# Ask the backend for the status of the payment
pay_status = backend_get(
@@ -237,7 +236,9 @@ def article(article_name, data=None):
)
else:
return render_article(article_name, data, order_id)
- else:
- # Redirect the browser to a page where the wallet can
- # run the payment protocol.
- return flask.redirect(pay_status["order_status_url"])
+
+ # Redirect the browser to a page where the wallet can
+ # run the payment protocol.
+ response = flask.redirect(pay_status["order_status_url"])
+ response.set_cookie("order_id", order_id, path=f"/essay/{article_name}")
+ return response
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: set cookie in the right place,
gnunet <=