Skip to content

Commit

Permalink
Accept curl headers that are uppercase when looking for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Jan 30, 2024
1 parent a325ba5 commit 02fa8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkedin_matrix/commands/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ async def login_curl(evt: CommandEvent):
for m in header_matches:
(name, value) = m

if name == "cookie":
if name.lower() == "cookie":
cookie_items = value.split("; ")
for c in cookie_items:
n, v = c.split("=", 1)
cookies[n] = v
elif name == "accept":
elif name.lower() == "accept":
# Every request will have a different value for this
pass
else:
Expand Down

0 comments on commit 02fa8c8

Please sign in to comment.