fix: redirects
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user