From 2c98d04e4d4a344dc04a481b039a235678f7848e Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 12 Aug 2022 14:33:15 +0200 Subject: make Haketilo proxy web UI in terms of a Flask app --- src/hydrilla/url_patterns.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hydrilla/url_patterns.py') 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 ) -- cgit v1.2.3