mirror of
https://github.com/searxng/searxng.git
synced 2026-09-25 15:46:06 +00:00
[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user