From b9c33f2c83e1d77822140f5105cb1f73447361f9 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Thu, 16 Jan 2020 11:58:05 +0100 Subject: Fix echo check for process_shellrun in ogRest --- src/ogRest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3-18-g5258