# HG changeset patch # User RhodeCode Admin # Date 2023-07-27 10:38:21 # Node ID 6bd1539da14b73b24217861077dc9e62ebcac6de # Parent 9cd499cc867465914929ca39d5a896610eae0286 authomatic: fixed oauth data types diff --git a/rhodecode/lib/_vendor/authomatic/adapters.py b/rhodecode/lib/_vendor/authomatic/adapters.py --- a/rhodecode/lib/_vendor/authomatic/adapters.py +++ b/rhodecode/lib/_vendor/authomatic/adapters.py @@ -271,8 +271,7 @@ class WerkzeugAdapter(BaseAdapter): self.response = response def write(self, value): - #self.response.data = self.response.data.decode('utf-8') + value - self.response.data = self.response.data + value + self.response.data = self.response.data.decode('utf-8') + value def set_header(self, key, value): self.response.headers[key] = value diff --git a/rhodecode/lib/_vendor/authomatic/core.py b/rhodecode/lib/_vendor/authomatic/core.py --- a/rhodecode/lib/_vendor/authomatic/core.py +++ b/rhodecode/lib/_vendor/authomatic/core.py @@ -1159,8 +1159,7 @@ class Response(ReprMixin): if self.is_binary_string(content): self._content = content else: - #self._content = content.decode('utf-8') - self._content = content + self._content = content.decode('utf-8') return self._content @property