From 02fa8c8e6a43f2043b167415b23ce275d5d3916f Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Tue, 30 Jan 2024 16:50:10 -0500 Subject: [PATCH] Accept curl headers that are uppercase when looking for cookies --- linkedin_matrix/commands/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkedin_matrix/commands/auth.py b/linkedin_matrix/commands/auth.py index a3c79f1..c7b1e79 100644 --- a/linkedin_matrix/commands/auth.py +++ b/linkedin_matrix/commands/auth.py @@ -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: