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()