From e96e187825ad4e03904b23697215a1bb58bfe3f0 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 31 Jan 2020 13:17:24 +0100 Subject: Fix parseGetConf(...) configuration parsing This patch also reformats the response to the /refresh command. --- src/restRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/restRequest.py') diff --git a/src/restRequest.py b/src/restRequest.py index c9d4881..9b26cb2 100644 --- a/src/restRequest.py +++ b/src/restRequest.py @@ -98,7 +98,7 @@ class restRequest: if "id" in body: self.id = json_param["id"] - if "code" in body: + if "code" in json_param: self.code = json_param["code"] def getHeaderLine(self): -- cgit v1.2.3-18-g5258