rm note to self: to be discussed in PR

This commit is contained in:
Konstantin Lopuhin 2016-01-14 14:52:44 +03:00
parent ac2cf191d1
commit 8df35bcac6
1 changed files with 0 additions and 2 deletions

View File

@ -131,8 +131,6 @@ class ScrapyHTTPClientFactory(HTTPClientFactory):
status = int(self.status)
headers = Headers(self.response_headers)
respcls = responsetypes.from_args(headers=headers, url=self._url)
# XXX - scrapy response stores body as bytes,
# but maybe it makes sense to be able to store unicode?
body = to_bytes(body)
return respcls(url=self._url, status=status, headers=headers, body=body)