[fix] network: stop http redirects (#6740)

Stop curl from following from a HTTPS origin to a HTTP page

See: https://curl.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html

Reported-by: Rohit Dixit <00.00.xit@gmail.com>
This commit is contained in:
Brock Vojkovic
2026-09-17 15:27:01 +08:00
committed by GitHub
parent 3accbaca79
commit 9aab16aef7
2 changed files with 5 additions and 9 deletions

View File

@@ -277,7 +277,6 @@ class Network:
client = await self.get_client(**kwargs_clients)
try:
method = method.upper()
client.check_url(url)
if stream:
return client.stream(method, url, **kwargs)