whoogle-search/app/utils
Ben Busby 6f5f3d8ca7
Fix incorrect redirect protocol used by Flask
Flask's `request.url` uses `http` as the protocol, which breaks
instances that enforce `https`, since the session redirect relies on
`request.url` for the follow-through URL.

This introduces a new method for determining the correct URL to use for
these redirects by automatically replacing the protocol with `https` if
the `HTTPS_ONLY` env var is set for that instance.

Fixes #538

Fixes #545
2021-11-21 23:21:04 -07:00
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Bang refactor PEP-8 fix 2021-11-01 16:53:19 -06:00
misc.py Fix incorrect redirect protocol used by Flask 2021-11-21 23:21:04 -07:00
results.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00
search.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00
session.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00