summaryrefslogtreecommitdiffstats
path: root/src/restRequest.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-31 13:17:24 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-03 10:15:49 +0100
commite96e187825ad4e03904b23697215a1bb58bfe3f0 (patch)
tree34e00beec791ce297d3f57b692c0a60a3148c311 /src/restRequest.py
parentf86999da0c150d2a6976ba69a352164b55c52639 (diff)
Fix parseGetConf(...) configuration parsing
This patch also reformats the response to the /refresh command.
Diffstat (limited to 'src/restRequest.py')
-rw-r--r--src/restRequest.py2
1 files changed, 1 insertions, 1 deletions
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):