Show More
@@ -271,8 +271,7 b' class WerkzeugAdapter(BaseAdapter):' | |||
|
271 | 271 | self.response = response |
|
272 | 272 | |
|
273 | 273 | def write(self, value): |
|
274 |
|
|
|
275 | self.response.data = self.response.data + value | |
|
274 | self.response.data = self.response.data.decode('utf-8') + value | |
|
276 | 275 | |
|
277 | 276 | def set_header(self, key, value): |
|
278 | 277 | self.response.headers[key] = value |
@@ -1159,8 +1159,7 b' class Response(ReprMixin):' | |||
|
1159 | 1159 | if self.is_binary_string(content): |
|
1160 | 1160 | self._content = content |
|
1161 | 1161 | else: |
|
1162 |
|
|
|
1163 | self._content = content | |
|
1162 | self._content = content.decode('utf-8') | |
|
1164 | 1163 | return self._content |
|
1165 | 1164 | |
|
1166 | 1165 | @property |
General Comments 0
You need to be logged in to leave comments.
Login now