Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Nov 28, 2023
1 parent afb128d commit defb014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanic/cookies/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def parse_cookie(raw: str) -> Dict[str, List[str]]:
# https://github.com/httpwg/http-extensions/issues/159
if not sep:
if not name:
continue # Empty value like ;; or a cookie header with no value
# Empty value like ;; or a cookie header with no value
continue
name, value = "", name

if COOKIE_NAME_RESERVED_CHARS.search(name): # no cov
Expand Down

0 comments on commit defb014

Please sign in to comment.