1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 21:04:34 +00:00

fixed bug

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40688
This commit is contained in:
samus_ 2009-01-08 18:29:33 +00:00
parent c601bbb083
commit d0e5245fba

View File

@ -80,8 +80,11 @@ 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))
newresp.body = kw.get('body', samebody())
status=kw.get('status', self.status),
body=kw.get('body'))
# Response.__init__ forbids the use of ResponseBody instances
if 'body' not in kw:
newresp.body = samebody()
return newresp
def to_string(self):