mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Change websocket header to a dict
This commit is contained in:
parent
5d84587ee2
commit
944a231e5b
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# This file is part of Tautulli.
|
||||
#
|
||||
|
@ -178,9 +178,9 @@ def run():
|
|||
|
||||
# Set authentication token (if one is available)
|
||||
if plexpy.CONFIG.PMS_TOKEN:
|
||||
header = ["X-Plex-Token: %s" % plexpy.CONFIG.PMS_TOKEN]
|
||||
header = {"X-Plex-Token": plexpy.CONFIG.PMS_TOKEN}
|
||||
else:
|
||||
header = []
|
||||
header = None
|
||||
|
||||
global ws_shutdown
|
||||
ws_shutdown = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue