mirror of https://github.com/scrapy/scrapy.git
[settings/default_settings.py] dont retry 400
As in HTTP specs: "10.4.1 400 Bad Request The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications." Scrapy should not retry 400 by default.
This commit is contained in:
parent
87293965db
commit
e575f44446
|
|
@ -209,7 +209,7 @@ REFERER_ENABLED = True
|
|||
|
||||
RETRY_ENABLED = True
|
||||
RETRY_TIMES = 2 # initial response + 2 retries = 3 requests
|
||||
RETRY_HTTP_CODES = [500, 502, 503, 504, 400, 408]
|
||||
RETRY_HTTP_CODES = [500, 502, 503, 504, 408]
|
||||
RETRY_PRIORITY_ADJUST = -1
|
||||
|
||||
ROBOTSTXT_OBEY = False
|
||||
|
|
|
|||
Loading…
Reference in New Issue