whoogle-search/app
Ben Busby e7a604d428
Fix handling of http (vs https) proxy creation
The requests library requires both 'http' and 'https' values in any
included proxy dict, and whoogle was previously copying the http proxy
to https for simplicity. The assumption was that if the underlying
request wasn't able to connect via https, it would default to http
(otherwise why have the requirement to specify both?)

This led to connectivity issues for users with http only proxies as of
the latest urllib and requests package versions, which are a lot more
strict with connections over https. With the latest versions, if an
https connection cannot be made, the library returns an error.

As a result, the new proxy dict must look something like this for plain
http proxies:

{'http': 'http://domain.tld:port', 'https': 'http://domain.tld:port'}

where both http and https are identical, but both are still required.
2021-06-04 15:30:21 -04:00
..
models Support basic localization (#325) 2021-05-24 17:03:02 -04:00
static Add Portuguese translation (#345) 2021-06-04 11:16:58 -04:00
templates Add fallback interface/search lang + cleanup 2021-06-04 11:09:30 -04:00
utils Hotfix: remove site filter for maps links 2021-05-27 12:01:57 -04:00
__init__.py Bump version to 0.5.3 2021-06-04 11:31:03 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Add fallback interface/search lang + cleanup 2021-06-04 11:09:30 -04:00
request.py Fix handling of http (vs https) proxy creation 2021-06-04 15:30:21 -04:00
routes.py Add fallback interface/search lang + cleanup 2021-06-04 11:09:30 -04:00