Skip to content

Commit

Permalink
🐛 fix decoding encoded square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 18, 2024
1 parent c54518e commit 060e82b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qs_codec/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def _parse_query_string_values(value: str, options: DecodeOptions) -> t.Dict:
obj: t.Dict = dict()

clean_str: str = value.replace("?", "", 1) if options.ignore_query_prefix else value
clean_str = clean_str.replace("%5B", "[").replace("%5b", "[").replace("%5D", "]").replace("%5d", "]")
limit: t.Optional[int] = None if isinf(options.parameter_limit) else options.parameter_limit # type: ignore [assignment]
parts: t.List[str]
if isinstance(options.delimiter, re.Pattern):
Expand Down

0 comments on commit 060e82b

Please sign in to comment.