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