Merge pull request #91 from Aerion/develop
fix rest platform headers not working
This commit is contained in:
commit
7d98bc437b
@ -59,6 +59,8 @@ class Platform:
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
# parse the user's options from the config entries
|
# parse the user's options from the config entries
|
||||||
for key, value in kwargs.items():
|
for key, value in kwargs.items():
|
||||||
|
if key == "headers":
|
||||||
|
value = json.loads(value)
|
||||||
self.__dict__[key] = value
|
self.__dict__[key] = value
|
||||||
|
|
||||||
# set defaults for omitted options
|
# set defaults for omitted options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user