From 9c34a8e69f2eb59f3c0d4885010b661f784f4a96 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Thu, 16 Jan 2020 11:51:36 +0100 Subject: Change /probe from GET to POST in ogClient --- src/ogRest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ogRest.py b/src/ogRest.py index dcc0817..ab549d9 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -134,9 +134,7 @@ class ogRest(): op = httpparser.getRequestOP() URI = httpparser.getURI() if ("GET" in op): - if ("probe" in URI): - self.process_probe(client) - elif ("hardware" in URI): + if "hardware" in URI: self.process_hardware(client) elif ("run/schedule" in URI): self.process_schedule(client) @@ -145,6 +143,8 @@ class ogRest(): elif ("POST" in op): if ("poweroff" in URI): self.process_poweroff(client) + elif "probe" in URI: + self.process_probe(client) elif ("reboot" in URI): self.process_reboot(client) elif ("shell/run" in URI): -- cgit v1.2.3-18-g5258