From cb2d23423000c66e2dd4d5c20d1990693096d82d Mon Sep 17 00:00:00 2001 From: brunnenschacht Date: Thu, 13 Jul 2017 09:19:08 +0200 Subject: [PATCH] Ensure the proper encoding for the authentication header response issue6628 review36441002 --- trytond/protocols/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/protocols/wrappers.py b/trytond/protocols/wrappers.py index e0f1b11299..e493a12d1a 100644 --- a/trytond/protocols/wrappers.py +++ b/trytond/protocols/wrappers.py @@ -148,7 +148,7 @@ def user_application(name, json=True): pool = Pool() UserApplication = pool.get('res.user.application') - authorization = request.headers['Authorization'] + authorization = wsgi_to_bytes(request.headers['Authorization']) try: auth_type, auth_info = authorization.split(None, 1) auth_type = auth_type.lower()