Change websocket header to a dict

This commit is contained in:
JonnyWong16 2022-03-26 15:47:17 -07:00
parent 5d84587ee2
commit 944a231e5b
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This file is part of Tautulli. # This file is part of Tautulli.
# #
@ -178,9 +178,9 @@ def run():
# Set authentication token (if one is available) # Set authentication token (if one is available)
if plexpy.CONFIG.PMS_TOKEN: if plexpy.CONFIG.PMS_TOKEN:
header = ["X-Plex-Token: %s" % plexpy.CONFIG.PMS_TOKEN] header = {"X-Plex-Token": plexpy.CONFIG.PMS_TOKEN}
else: else:
header = [] header = None
global ws_shutdown global ws_shutdown
ws_shutdown = False ws_shutdown = False