Fix: urllib3 Retry compatibility - use method_whitelist instead of allowed_methods

This commit is contained in:
qichi.liang
2026-01-04 01:48:09 +08:00
parent 3473a0a5ec
commit c83353fab0

View File

@@ -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"]
) )
# 配置适配器 # 配置适配器