summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-12-02 09:07:33 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-12-02 14:11:49 +0100
commit8d914564c852346236fbad13819fdfde6920bb37 (patch)
tree91de564a7a88e37491e42f24d222c63333a4fdb0 /src/rest.c
parenta043fca7f8a4e7b60dd2e5d1ec2a70ccd55b9d0d (diff)
#1010 Adapt ogServer to send GET /software
ogClient changed /software from POST to GET. Adapt ogServer to work with ogClient /software new method.
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index 196a25d..b208f50 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -1666,7 +1666,7 @@ static int og_cmd_software(json_t *element, struct og_msg_params *params)
clients = json_copy(element);
json_object_del(clients, "clients");
- return og_send_request(OG_METHOD_POST, OG_CMD_SOFTWARE, params, clients);
+ return og_send_request(OG_METHOD_GET, OG_CMD_SOFTWARE, params, clients);
}
static int og_cmd_get_software(json_t *element, struct og_msg_params *params,