From 9996817719adf44a77ae0d2d17dc9ca2aa6d934a Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 12 Dec 2023 14:04:39 -0700 Subject: [PATCH] realtime: fix connection headers Signed-off-by: Sumner Evans --- linkedin_messaging/linkedin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkedin_messaging/linkedin.py b/linkedin_messaging/linkedin.py index 54fd0f1..f9b6d1d 100644 --- a/linkedin_messaging/linkedin.py +++ b/linkedin_messaging/linkedin.py @@ -521,7 +521,7 @@ async def _listen_to_event_stream(self): headers={ "accept": "text/event-stream", "connection": "keep-alive", - "x-li-accept": "application/vnd.linkedin.normalized+json+2.1", + "content-type": "text/event-stream", **REQUEST_HEADERS, }, # The event stream normally stays open for about 3 minutes, but this will