SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] checker: fix image fetch
Alexandre Flament5439dd5fb1ec
diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.pyindex c0dd966d0..bc5cdf968 100644--- a/searx/search/checker/impl.py+++ b/searx/search/checker/impl.py@@ -74,7 +74,7 @@ def _download_and_check_if_image(image_url: str) -> bool:try:# use "image_proxy" (avoid HTTP/2)network.set_context_network_name('image_proxy')- stream = network.stream(+ r, stream = network.stream('GET',image_url,timeout=10.0,@@ -91,7 +91,6 @@ def _download_and_check_if_image(image_url: str) -> bool:'Cache-Control': 'max-age=0',},)- r = next(stream)r.close()if r.status_code == 200:is_image = r.headers.get('content-type', '').startswith('image/')