searx/searx/network
Noémi Ványi ea38fea711
Pick image_proxy changes from searxng (#2965)
* [mod] /image_proxy: don't decompress images

* [fix] image_proxy: always close the httpx respone

previously, when the content type was not an image and some other error,
the httpx response was not closed

* [mod] /image_proxy: use HTTP/1 instead of HTTP/2

httpx: HTTP/2 is slow when a lot data is downloaded.
https://github.com/dalf/pyhttp-benchmark

also, the usage of HTTP/1 decreases the load average

* [mod] searx.utils.dict_subset: rewrite with comprehension

Co-authored-by: Alexandre Flament <alex@al-f.net>
2022-01-22 13:49:00 +01:00
..
__init__.py Pick image_proxy changes from searxng (#2965) 2022-01-22 13:49:00 +01:00
client.py Drop Python 3.6 support (#3133) 2022-01-16 15:04:32 +01:00
network.py Pick image_proxy changes from searxng (#2965) 2022-01-22 13:49:00 +01:00
raise_for_httperror.py [httpx] replace searx.poolrequests by searx.network 2021-05-03 21:39:54 +02:00