mirror of https://github.com/scrapy/scrapy.git
Fixed choosing of response class based on body.
This commit is contained in:
parent
1c34e491d6
commit
5e60d957e9
|
|
@ -347,7 +347,7 @@ class ScrapyAgent(object):
|
|||
txresponse, body, flags = result
|
||||
status = int(txresponse.code)
|
||||
headers = Headers(txresponse.headers.getAllRawHeaders())
|
||||
respcls = responsetypes.from_args(headers=headers, url=url)
|
||||
respcls = responsetypes.from_args(headers=headers, url=url, body=body)
|
||||
return respcls(url=url, status=status, headers=headers, body=body, flags=flags)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue