summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-16 11:58:05 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commitb9c33f2c83e1d77822140f5105cb1f73447361f9 (patch)
tree0d15072729479a46edca74b7ac17e699a9c9ab72 /src/ogRest.py
parentdf98db2c3c11c7b1b96e175dd275bbeb0acb250f (diff)
Fix echo check for process_shellrun in ogRest
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index ab549d9..b669be4 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -191,7 +191,7 @@ class ogRest():
client.send(restResponse.getResponse(ogResponses.BAD_REQUEST))
return
- if httpparser.getEcho() == "true":
+ if httpparser.getEcho():
jsonResp = jsonResponse()
jsonResp.addElement('out', shellout)
client.send(restResponse.getResponse(ogResponses.OK, jsonResp))