fix: allow proxy redirects

This commit is contained in:
2026-04-20 22:22:53 +02:00
parent d0aa8d6413
commit 96cf1f394b
+6 -1
View File
@@ -139,7 +139,12 @@ class BaseHandler(abc.ABC, http.server.BaseHTTPRequestHandler):
if self.in_size > 0:
body = self.rfile.read(self.in_size)
response: requests.Response = requests.request(
self.command, url, data=body, headers=headers, timeout=240
self.command,
url,
data=body,
headers=headers,
allow_redirects=True,
timeout=480,
)
except Exception as e:
self.send_error(