Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(web): support redirect handling in fake responses
hinotoi-agent25d00b1ea464
diff --git a/nanobot/agent/tools/web.py b/nanobot/agent/tools/web.pyindex 112167b48..71b1011d1 100644--- a/nanobot/agent/tools/web.py+++ b/nanobot/agent/tools/web.py@@ -95,7 +95,8 @@ async def _get_with_safe_redirects(return None, f"Redirect blocked: {error_msg}"response = await client.get(current_url, headers=headers, follow_redirects=False)- if not response.is_redirect:+ is_redirect = 300 <= response.status_code < 400+ if not is_redirect:return response, Nonelocation = response.headers.get("location")