diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-20 21:57:47 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-20 21:57:47 +0200 |
commit | 55b95d70b24cfa1b4703ae442a3c6d1781cc95aa (patch) | |
tree | c6a33b401af373d7591e46e21dede0609313a140 /src/hydrilla/proxy/web_ui | |
parent | 3beab050c339c51c484af9bcd8248ba8ebbbf4d4 (diff) | |
download | haketilo-hydrilla-55b95d70b24cfa1b4703ae442a3c6d1781cc95aa.tar.gz haketilo-hydrilla-55b95d70b24cfa1b4703ae442a3c6d1781cc95aa.zip |
[proxy] rework internal HTTP headers representation
Diffstat (limited to 'src/hydrilla/proxy/web_ui')
-rw-r--r-- | src/hydrilla/proxy/web_ui/root.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/root.py b/src/hydrilla/proxy/web_ui/root.py index 57dc958..3120d0e 100644 --- a/src/hydrilla/proxy/web_ui/root.py +++ b/src/hydrilla/proxy/web_ui/root.py @@ -191,7 +191,7 @@ def process_request( request_info: http_messages.RequestInfo, state: st.HaketiloState, ui_domain: _app.UIDomain = _app.UIDomain.MAIN -) -> http_messages.ProducedResponse: +) -> http_messages.ResponseInfo: path = '/'.join(('', *request_info.url.path_segments)) if (request_info.url.has_trailing_slash): path += '/' @@ -218,7 +218,7 @@ def process_request( in flask_response.headers ] - return http_messages.ProducedResponse( + return http_messages.ResponseInfo.make( status_code = flask_response.status_code, headers = headers_bytes, body = flask_response.data |