fix: redirects

This commit is contained in:
2026-04-20 23:28:24 +02:00
parent 74c4cf45d7
commit 966bbdbdf0
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ class BaseHandler(abc.ABC, http.server.BaseHTTPRequestHandler):
url, url,
data=body, data=body,
headers=headers, headers=headers,
allow_redirects=True, allow_redirects=False,
timeout=480, timeout=480,
) )
except Exception as e: except Exception as e:
+6 -6
View File
@@ -761,7 +761,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-For": "127.0.0.1", "X-Forwarded-For": "127.0.0.1",
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
), ),
@@ -804,7 +804,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
"Content-Length": "5", "Content-Length": "5",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
), ),
@@ -845,7 +845,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-For": "127.0.0.1", "X-Forwarded-For": "127.0.0.1",
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
), ),
@@ -878,7 +878,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-For": "127.0.0.1", "X-Forwarded-For": "127.0.0.1",
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
) as request_mock, ) as request_mock,
@@ -920,7 +920,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-For": "127.0.0.1", "X-Forwarded-For": "127.0.0.1",
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
), ),
@@ -959,7 +959,7 @@ class TestRequestHandler(BaseHandlerTestCase):
"X-Forwarded-For": "127.0.0.1", "X-Forwarded-For": "127.0.0.1",
"X-Forwarded-Proto": "https", "X-Forwarded-Proto": "https",
}, },
"allow_redirects": True, "allow_redirects": False,
"timeout": 480, "timeout": 480,
}, },
), ),