whoogle-search/app
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
..
models Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00
static Add Japanese translation (#528) 2021-11-09 08:37:49 -07:00
templates Add "update available" indicator to footer (#517) 2021-11-02 10:35:40 -06:00
utils Fix incorrect redirect protocol used by Flask 2021-11-21 23:21:04 -07:00
__init__.py Improve cookie security when `HTTPS_ONLY` is set 2021-11-20 16:34:37 -07:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00
request.py Include "chips" param in image search (#534) 2021-11-17 16:17:27 -07:00
routes.py Fix incorrect redirect protocol used by Flask 2021-11-21 23:21:04 -07:00