From c601bbb0837f5de378ab2ded67d1c53b0e1bb238 Mon Sep 17 00:00:00 2001 From: samus_ Date: Thu, 8 Jan 2009 16:08:04 +0000 Subject: [PATCH] fixed bug in copy method of Response (tests coming soon) --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40687 --- scrapy/trunk/scrapy/http/response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):