Fix: urllib3 Retry compatibility - use method_whitelist instead of allowed_methods
This commit is contained in:
@@ -36,7 +36,7 @@ class CameraManager:
|
|||||||
total=3,
|
total=3,
|
||||||
backoff_factor=1,
|
backoff_factor=1,
|
||||||
status_forcelist=[429, 500, 502, 503, 504],
|
status_forcelist=[429, 500, 502, 503, 504],
|
||||||
allowed_methods=["HEAD", "GET", "OPTIONS"]
|
method_whitelist=["HEAD", "GET", "OPTIONS"]
|
||||||
)
|
)
|
||||||
|
|
||||||
# 配置适配器
|
# 配置适配器
|
||||||
|
|||||||
Reference in New Issue
Block a user