From 900a1c8f08340be47939294621b40cec82efc944 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 2 Dec 2020 09:14:34 +0100 Subject: #1010 Change POST /software to GET MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ogClient /software gets a representation of the target resource’s state. GET method is more appropriate than POST. Change /software method from POST to GET. --- src/ogRest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ogRest.py b/src/ogRest.py index d9d6f4a..86ff68f 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -290,6 +290,8 @@ class ogRest(): if ("GET" in method): if "hardware" in URI: self.process_hardware(client) + elif ("software" in URI): + self.process_software(client, request) elif ("run/schedule" in URI): self.process_schedule(client) elif "refresh" in URI: @@ -312,8 +314,6 @@ class ogRest(): self.process_shellrun(client, request) elif ("session" in URI): self.process_session(client, request) - elif ("software" in URI): - self.process_software(client, request) elif ("setup" in URI): self.process_setup(client, request) elif ("image/restore" in URI): -- cgit v1.2.3-18-g5258