Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fixed bug in copy method of Response (tests coming soon)

samus_c601bbb0837f
diff --git a/scrapy/trunk/scrapy/http/response.py b/scrapy/trunk/scrapy/http/response.py
index ca79512a6..b91d64186 100644
--- a/scrapy/trunk/scrapy/http/response.py
+++ b/scrapy/trunk/scrapy/http/response.py
@@ -80,8 +80,8 @@ class Response(object) :
kw.get('url', self.url),
original_url=kw.get('original_url', self.original_url),
headers=kw.get('headers', sameheaders()),
- status=kw.get('status', self.status),
- body=kw.get('body', samebody()))
+ status=kw.get('status', self.status))
+ newresp.body = kw.get('body', samebody())
return newresp
def to_string(self):