summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-16 11:51:36 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit9c34a8e69f2eb59f3c0d4885010b661f784f4a96 (patch)
treec24ddde12a7190a920701b70ce4213075fa8148f
parent3a44e48e4be912d66c2f634a0e4d1a33132b15b6 (diff)
Change /probe from GET to POST in ogClient
-rw-r--r--src/ogRest.py6
1 files changed, 3 insertions, 3 deletions
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):