changeset b00d30820a9e in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=b00d30820a9e
description:
        Return string on Base64Converter.to_url

        issue10083
        review353321002
diffstat:

 trytond/wsgi.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 107af2fc2ef8 -r b00d30820a9e trytond/wsgi.py
--- a/trytond/wsgi.py   Sun Feb 14 15:47:00 2021 +0100
+++ b/trytond/wsgi.py   Sun Feb 14 15:54:29 2021 +0100
@@ -53,7 +53,7 @@
         return base64.urlsafe_b64decode(value).decode('utf-8')
 
     def to_url(self, value):
-        return base64.urlsafe_b64encode(value.encode('utf-8'))
+        return base64.urlsafe_b64encode(value.encode('utf-8')).decode('ascii')
 
 
 class TrytondWSGI(object):

Reply via email to