summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-02-03 14:32:03 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-02-03 14:33:13 (GMT)
commit03c0c0abff8e8d28d8da0900c10258710ecc619e (patch)
tree621cc98a16fa7682684a02c2c36b71221df3e347
parent300d1b657980c9619aa625156dbb99e059a69859 (diff)
downloadcombo-wip/39491-lingo-request-body-semble-vide-s.zip
combo-wip/39491-lingo-request-body-semble-vide-s.tar.gz
combo-wip/39491-lingo-request-body-semble-vide-s.tar.bz2
lingo: use query string when request body is empty (#39491)wip/39491-lingo-request-body-semble-vide-s
Some backends (PayFiP WS) put the response in the query string of a POST.
-rw-r--r--combo/apps/lingo/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py
index 1f75ab1..2bd1295 100644
--- a/combo/apps/lingo/views.py
+++ b/combo/apps/lingo/views.py
@@ -649,7 +649,7 @@ class ReturnView(PaymentView):
return self.handle_return(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_return(request, force_text(request.body), **kwargs)
+ return self.handle_return(request, force_text(request.body) or request.environ['QUERY_STRING'], **kwargs)
def handle_return(self, request, backend_response, **kwargs):
transaction = None