summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-10-25 07:49:10 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-10-25 08:15:37 (GMT)
commit3be27ce16bc73378dae0350a3578c11c49017bc8 (patch)
tree74ae1af67ff5e0acc246e2030f54c034a875cacc
parent226f93dbd7a891ef640d80d77e799461c73a7f92 (diff)
downloadcombo-3be27ce16bc73378dae0350a3578c11c49017bc8.zip
combo-3be27ce16bc73378dae0350a3578c11c49017bc8.tar.gz
combo-3be27ce16bc73378dae0350a3578c11c49017bc8.tar.bz2
lingo: make sure eopayment is given a string (#37214)
-rw-r--r--combo/apps/lingo/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py
index 80362a1..053d7c7 100644
--- a/combo/apps/lingo/views.py
+++ b/combo/apps/lingo/views.py
@@ -572,7 +572,7 @@ class CallbackView(PaymentView):
return self.handle_callback(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_callback(request, request.body, **kwargs)
+ return self.handle_callback(request, force_text(request.body), **kwargs)
@csrf_exempt
def dispatch(self, *args, **kwargs):
@@ -590,7 +590,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, request.body, **kwargs)
+ return self.handle_return(request, force_text(request.body), **kwargs)
def handle_return(self, request, backend_response, **kwargs):
transaction = None