core: prevent download timeout from been accidentally disabled

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40956
This commit is contained in:
Daniel Grana 2009-03-02 23:22:36 +00:00
parent 875e8e57d3
commit ab3fdbdb8e
1 changed files with 1 additions and 1 deletions

View File

@ -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):