aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/root.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-10 16:45:41 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-10 16:45:41 +0200
commit28e2064c86cfb9f35312417192f5b1395b16917c (patch)
tree6c2846ab180b4d2ad6f4c1153d296c8b5c972ee0 /src/hydrilla/proxy/web_ui/root.py
parentb880bdc779b800ebde810279d1cf5b9e530000de (diff)
downloadhaketilo-hydrilla-28e2064c86cfb9f35312417192f5b1395b16917c.tar.gz
haketilo-hydrilla-28e2064c86cfb9f35312417192f5b1395b16917c.zip
[proxy] when web UI's home page is accessed through plain HTTP, show link to TLS certs page and tell the user to install mitmproxy cert
Diffstat (limited to 'src/hydrilla/proxy/web_ui/root.py')
-rw-r--r--src/hydrilla/proxy/web_ui/root.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/web_ui/root.py b/src/hydrilla/proxy/web_ui/root.py
index 3676307..14b44ff 100644
--- a/src/hydrilla/proxy/web_ui/root.py
+++ b/src/hydrilla/proxy/web_ui/root.py
@@ -167,7 +167,7 @@ def process_request(
flask_response = app.test_client().open(
path = path,
- base_url = 'https://hkt.mitm.it',
+ base_url = f'{request_info.url.scheme}://hkt.mitm.it',
method = request_info.method,
query_string = request_info.url.query,
headers = [*request_info.headers.items()],