Skip to content

Commit

Permalink
provisioning: fix cookie_header parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Jan 17, 2024
1 parent b4fec48 commit 8d3cafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkedin_matrix/web/provisioning_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def login(self, request: web.Request) -> web.Response:
return web.HTTPBadRequest(body='{"error": "Malformed JSON"}', headers=self._headers)

if "cookie_header" in data:
for cookie in data.pop("cookie_header").split(" ;"):
for cookie in data.pop("cookie_header").split("; "):
key, val = cookie.split("=", 1)
data[key] = val

Expand Down

0 comments on commit 8d3cafe

Please sign in to comment.