[enh] py: drop deps (#5407)

The difference between decompression with brotli or gzip in HTML files is
negligible for 3 MB of compiled binary package.

Introduced in eaa694fb7d

Closes https://github.com/searxng/searxng/security/code-scanning/276
Closes https://github.com/searxng/searxng/security/dependabot/37
This commit is contained in:
Ivan Gabaldon
2025-11-06 10:09:10 +01:00
committed by GitHub
parent b1918dd121
commit 7af922c9df
9 changed files with 3 additions and 36 deletions

View File

@@ -82,7 +82,6 @@ def _download_and_check_if_image(image_url: str) -> bool:
'User-Agent': gen_useragent(),
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US;q=0.5,en;q=0.3',
'Accept-Encoding': 'gzip, deflate, br',
'DNT': '1',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',