1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

fix plus signs in quoted query

This commit is contained in:
Kelly Brazil
2022-07-20 16:39:31 -07:00
parent 2eaef09770
commit bc211b7c36

View File

@ -177,7 +177,7 @@ def parse(
normalized = urlsplit(urlunsplit(parts)) normalized = urlsplit(urlunsplit(parts))
quoted = normalized._replace(path=quote(normalized.path), quoted = normalized._replace(path=quote(normalized.path),
query=quote_plus(normalized.query)).geturl() query=quote_plus(normalized.query, safe='+')).geturl()
unquoted = normalized._replace(path=unquote(normalized.path), unquoted = normalized._replace(path=unquote(normalized.path),
query=unquote_plus(normalized.query)).geturl() query=unquote_plus(normalized.query)).geturl()