Change /probe from GET to POST in ogClient

more_events
Roberto Hueso Gómez 2020-01-16 11:51:36 +01:00 committed by Alvaro Neira Ayuso
parent 3a44e48e4b
commit 9c34a8e69f
1 changed files with 3 additions and 3 deletions

View File

@ -134,9 +134,7 @@ class ogRest():
op = httpparser.getRequestOP() op = httpparser.getRequestOP()
URI = httpparser.getURI() URI = httpparser.getURI()
if ("GET" in op): if ("GET" in op):
if ("probe" in URI): if "hardware" in URI:
self.process_probe(client)
elif ("hardware" in URI):
self.process_hardware(client) self.process_hardware(client)
elif ("run/schedule" in URI): elif ("run/schedule" in URI):
self.process_schedule(client) self.process_schedule(client)
@ -145,6 +143,8 @@ class ogRest():
elif ("POST" in op): elif ("POST" in op):
if ("poweroff" in URI): if ("poweroff" in URI):
self.process_poweroff(client) self.process_poweroff(client)
elif "probe" in URI:
self.process_probe(client)
elif ("reboot" in URI): elif ("reboot" in URI):
self.process_reboot(client) self.process_reboot(client)
elif ("shell/run" in URI): elif ("shell/run" in URI):