From 7aaa69e42d1b2d7d4bd2cb282b2886085f488454 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Thu, 2 Jan 2025 20:19:23 -0600 Subject: [PATCH] lol, fix it --- dChatServer/ChatWebAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dChatServer/ChatWebAPI.cpp b/dChatServer/ChatWebAPI.cpp index 4934ab8c..1948ca73 100644 --- a/dChatServer/ChatWebAPI.cpp +++ b/dChatServer/ChatWebAPI.cpp @@ -22,7 +22,7 @@ void ChatWebAPI::HandleRequests(struct mg_connection* connection, int request, v if (mg_strcmp(http_msg->method, mg_str("POST")) == 0) { // handle announcements if (mg_match(http_msg->uri, mg_str((root_path + "announce").c_str()), NULL)) { - auto data = GeneralUtils::TryParse(http_msg->body.buf); + auto data = ParseJSON(http_msg->body.buf); if (!data) { mg_http_reply(connection, 400, json_content_type, "{\"error\":\"Invalid JSON\"}"); return;