whoogle-search/app/utils
Ben Busby 5db72a9552
Use scheme in alt replacement if defined
For users running local instances of service alternatives such as
invidious, the alt replacement procedure broke if the scheme of the
original service (almost always https) didn't match the scheme of their
defined local service (likely http).

This adds a small check to see if the alt has a defined scheme, and if
so, removes the original scheme for that result.

Fixes #806
2022-07-13 10:25:51 -06:00
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Fall back to netloc for bang search if query is empty 2022-04-20 14:50:32 -06:00
misc.py Use X-Forwarded-Host as url_root when present (#799) 2022-07-05 10:01:47 -06:00
results.py Use scheme in alt replacement if defined 2022-07-13 10:25:51 -06:00
search.py Use X-Forwarded-Host as url_root when present (#799) 2022-07-05 10:01:47 -06:00
session.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00