Skip to content

Commit

Permalink
fix regex to find charset from header
Browse files Browse the repository at this point in the history
  • Loading branch information
livioribeiro authored Dec 29, 2024
1 parent 3b6deee commit 1d6e748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asgikit/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
FORM_MULTIPART_CONTENT_TYPE = "multipart/form-data"
FORM_CONTENT_TYPES = (FORM_URLENCODED_CONTENT_TYPE, FORM_MULTIPART_CONTENT_TYPE)

RE_CHARSET = re.compile(r"charset=([\w-]+?)")
RE_CHARSET = re.compile(r"charset=([\w-]+)")


def _parse_cookie(data: str) -> dict[str, str]:
Expand Down

0 comments on commit 1d6e748

Please sign in to comment.