diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-09-09 11:44:59 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-12 13:59:10 +0200 |
commit | 6036bad4c167633d41f01e030ec1ae919dbfab0a (patch) | |
tree | 02e164e6b7860dc69af1820fb1a53334aff1332f /src/hydrilla/proxy/state_impl/base.py | |
parent | d6e8e36e04fc36d42f9b985c47e2cd3b35907cc8 (diff) | |
download | haketilo-hydrilla-6036bad4c167633d41f01e030ec1ae919dbfab0a.tar.gz haketilo-hydrilla-6036bad4c167633d41f01e030ec1ae919dbfab0a.zip |
[proxy] allow prompting the user when a package suitable for current site is found; add proxy's options page
This commit also causes uncached responses to be forced on all
HTTP request to external servers. This is needed to make sure
that changes Haketilo makes to HTTP response headers are always
picked up by the browser. The drawback is that this increases
network traffic causing a performance hit. We might optimize this
in the future.
Diffstat (limited to 'src/hydrilla/proxy/state_impl/base.py')
-rw-r--r-- | src/hydrilla/proxy/state_impl/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/state_impl/base.py b/src/hydrilla/proxy/state_impl/base.py index 0559a42..75d733f 100644 --- a/src/hydrilla/proxy/state_impl/base.py +++ b/src/hydrilla/proxy/state_impl/base.py @@ -140,10 +140,9 @@ class HaketiloStateWithFields(st.HaketiloState): """....""" store_dir: Path connection: sqlite3.Connection + settings: st.HaketiloGlobalSettings current_cursor: t.Optional[sqlite3.Cursor] = None - #settings: st.HaketiloGlobalSettings - secret: bytes = dc.field(default_factory=(lambda: secrets.token_bytes(16))) policy_tree: PolicyTree = PolicyTree() |