mirror of https://github.com/scrapy/scrapy.git
core: prevent download timeout from been accidentally disabled
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40956
This commit is contained in:
parent
875e8e57d3
commit
ab3fdbdb8e
|
|
@ -56,7 +56,7 @@ def create_factory(request, spider):
|
|||
headers=request.headers,
|
||||
agent=agent,
|
||||
cookies=request.cookies,
|
||||
timeout=getattr(spider, "download_timeout", default_timeout),
|
||||
timeout=getattr(spider, "download_timeout", None) or default_timeout,
|
||||
followRedirect=False)
|
||||
|
||||
def _create_response(body):
|
||||
|
|
|
|||
Loading…
Reference in New Issue