aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/url_patterns.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-12 14:33:15 +0200
committerWojtek Kosior <koszko@koszko.org>2022-08-12 14:33:15 +0200
commit2c98d04e4d4a344dc04a481b039a235678f7848e (patch)
tree292b858fa07613c3c455961f17adf33e64db92e8 /src/hydrilla/url_patterns.py
parent3d025bfb796d3028282bc806d557b8289a42062b (diff)
downloadhaketilo-hydrilla-2c98d04e4d4a344dc04a481b039a235678f7848e.tar.gz
haketilo-hydrilla-2c98d04e4d4a344dc04a481b039a235678f7848e.zip
make Haketilo proxy web UI in terms of a Flask app
Diffstat (limited to 'src/hydrilla/url_patterns.py')
-rw-r--r--src/hydrilla/url_patterns.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hydrilla/url_patterns.py b/src/hydrilla/url_patterns.py
index 0a242e3..278827a 100644
--- a/src/hydrilla/url_patterns.py
+++ b/src/hydrilla/url_patterns.py
@@ -55,6 +55,7 @@ class ParsedUrl:
scheme: str = dc.field(hash=False, compare=False)
domain_labels: tuple[str, ...] = dc.field(hash=False, compare=False)
path_segments: tuple[str, ...] = dc.field(hash=False, compare=False)
+ query: str = dc.field(hash=False, compare=False)
has_trailing_slash: bool = dc.field(hash=False, compare=False)
port: int = dc.field(hash=False, compare=False)
@@ -189,12 +190,15 @@ def _parse_pattern_or_url(url: str, orig_url: str, is_pattern: bool = False) \
msg = _('err.url_pattern_{}.has_frag').format(orig_url)
raise HaketiloException(msg)
+ query = parse_result.query
+
return ParsedUrl(
orig_url = orig_url,
scheme = scheme,
port = port,
domain_labels = domain_labels,
path_segments = path_segments,
+ query = query,
has_trailing_slash = has_trailing_slash
)