mirror of https://github.com/scrapy/scrapy.git
rm note to self: to be discussed in PR
This commit is contained in:
parent
ac2cf191d1
commit
8df35bcac6
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue