From 7c04bc7e91287f6abef8ce4ce844d175018e4f32 Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 17 Oct 2024 09:12:53 -0400 Subject: [PATCH] Update WorldWeb.cpp --- source/WorldServer/Web/WorldWeb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/WorldServer/Web/WorldWeb.cpp b/source/WorldServer/Web/WorldWeb.cpp index 302ecdb..7823f7a 100644 --- a/source/WorldServer/Web/WorldWeb.cpp +++ b/source/WorldServer/Web/WorldWeb.cpp @@ -133,6 +133,9 @@ void World::Web_worldhandle_reloadrules(const http::request& res.set(http::field::content_type, "application/json"); boost::property_tree::ptree pt, json_tree; + std::istringstream json_stream(req.body()); + boost::property_tree::read_json(json_stream, json_tree); + database.LoadRuleSets(true); pt.put("success", 1);