diff mbox series

[V3,10/21] mongoose: Replace deprecated mg_vcasecmp with mg_strcasecmp

Message ID 20240709111440.8215-11-Michael.Glembotzki@iris-sensing.com
State Accepted
Headers show
Series mongoose: Update to version 7.14 | expand

Commit Message

Michael Glembotzki July 9, 2024, 11:08 a.m. UTC
mongoose rev-id: b46bee0540c83c780ae9622ef18b9cc8a7b3ebab

Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com>
---
 mongoose/mongoose_interface.c | 2 +-
 mongoose/mongoose_multipart.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
index ba2e8d35..66de0723 100644
--- a/mongoose/mongoose_interface.c
+++ b/mongoose/mongoose_interface.c
@@ -344,7 +344,7 @@  static void restart_handler(struct mg_connection *nc, void *ev_data)
 	struct mg_http_message *hm = (struct mg_http_message *) ev_data;
 	ipc_message msg = {};
 
-	if(mg_vcasecmp(&hm->method, "POST") != 0) {
+	if(mg_strcasecmp(hm->method, mg_str("POST")) != 0) {
 		mg_http_reply(nc, 405, "", "%s", "Method Not Allowed\n");
 		return;
 	}
diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c
index 265c02b9..29ec8a0b 100644
--- a/mongoose/mongoose_multipart.c
+++ b/mongoose/mongoose_multipart.c
@@ -336,7 +336,7 @@  void multipart_upload_handler(struct mg_connection *c, int ev, void *ev_data)
 	}
 
 	if (ev == MG_EV_READ) {
-		if(mg_vcasecmp(&hm->method, "POST") != 0) {
+		if(mg_strcasecmp(hm->method, mg_str("POST")) != 0) {
 			mg_http_reply(c, 405, "", "%s", "Method Not Allowed\n");
 			c->is_draining = 1;
 			return;