Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: remove dead `allow_redirects` parameter from `validate_url()` (#2620)

LearningCircuit9633d6a66697
diff --git a/src/local_deep_research/security/ssrf_validator.py b/src/local_deep_research/security/ssrf_validator.py
index 1b461798cb..ed65162e16 100644
--- a/src/local_deep_research/security/ssrf_validator.py
+++ b/src/local_deep_research/security/ssrf_validator.py
@@ -104,9 +104,6 @@ def is_ip_blocked(
def validate_url(
url: str,
- allow_redirects: bool = True, # Unused — kept for API compatibility.
- # Redirect validation is handled at the caller level (safe_get/safe_post
- # manual loop and SafeSession.send() override), not in validate_url().
allow_localhost: bool = False,
allow_private_ips: bool = False,
) -> bool:
@@ -120,8 +117,6 @@ def validate_url(
Args:
url: URL to validate
- allow_redirects: Unused — kept for API compatibility. Redirect
- validation is handled by safe_get/safe_post and SafeSession.
allow_localhost: Whether to allow localhost/loopback addresses.
Set to True for trusted internal services like self-hosted
search engines (e.g., searxng). Default False.
diff --git a/vulture_whitelist.py b/vulture_whitelist.py
index 0c6cb797f4..81cfa2b0a0 100644
--- a/vulture_whitelist.py
+++ b/vulture_whitelist.py
@@ -20,7 +20,6 @@ vote_type # noqa: F821 (news/core/storage.py)
# Parameters that are unused but have keyword-argument callers (cannot rename)
bypass_cache # noqa: F821 (manager.py — callers pass bypass_cache=True)
allow_absolute # noqa: F821 (path_validator.py — callers pass allow_absolute=False)
-allow_redirects # noqa: F821 (ssrf_validator.py — callers pass allow_redirects=…)
# Stub method parameters — will be used when implementation is completed
score_threshold # noqa: F821 (library_rag_service.py — search_library() stub)