From 8df35bcac6190ab92635e46009c2e099c8e6010d Mon Sep 17 00:00:00 2001 From: Konstantin Lopuhin Date: Thu, 14 Jan 2016 14:52:44 +0300 Subject: [PATCH] rm note to self: to be discussed in PR --- scrapy/core/downloader/webclient.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scrapy/core/downloader/webclient.py b/scrapy/core/downloader/webclient.py index 2d848aee0..15d14ae49 100644 --- a/scrapy/core/downloader/webclient.py +++ b/scrapy/core/downloader/webclient.py @@ -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)