fix edge case when parsing remote json

This commit is contained in:
Henri Dickson 2024-04-13 14:09:36 -04:00
parent 7c34ac78ed
commit 814ad94b5f

View file

@ -20,6 +20,8 @@ def json_from_response(response: Response) -> dict | None:
charset = None
for parameter in parameters:
if "=" not in parameter:
continue
key, value = parameter.split("=")
if key.strip() == "charset":
charset = value.strip()