Merge pull request #91 from Aerion/develop

fix rest platform headers not working
This commit is contained in:
sportivaman 2020-04-02 08:06:41 -04:00 committed by GitHub
commit 7d98bc437b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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