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:
parent
c601bbb083
commit
d0e5245fba
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user