Skip to content

Commit

Permalink
Fix bridge for non-header logins
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Jan 30, 2024
1 parent 73a5179 commit a325ba5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkedin_messaging/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def from_cookies_and_headers(cookies: dict[str, str],

# Skip these headers, including them will result in events being received in a newer
# format that we don't support
del linkedin.headers["x-li-query-map"]
del linkedin.headers["x-li-query-accept"]
del linkedin.headers["x-li-accept"]
linkedin.headers.pop("x-li-query-map", None)
linkedin.headers.pop("x-li-query-accept", None)
linkedin.headers.pop("x-li-accept", None)

return linkedin

Expand Down

0 comments on commit a325ba5

Please sign in to comment.