From 00cd76f7b21476e054d3ead4a4c8d507f391c963 Mon Sep 17 00:00:00 2001 From: Alex <18037145+salcodes1@users.noreply.github.com> Date: Tue, 28 Dec 2021 03:45:41 +0200 Subject: [PATCH] Fixed post requests not using provided route --- r5dev/networksystem/r5net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/networksystem/r5net.h b/r5dev/networksystem/r5net.h index bfd21860..cbc70115 100644 --- a/r5dev/networksystem/r5net.h +++ b/r5dev/networksystem/r5net.h @@ -18,7 +18,7 @@ namespace R5Net ResponseStructType result{};\ nlohmann::json request_body;\ nlohmann::to_json(request_body, request);\ - httplib::Result response = HttpClient.Post("/", request_body.dump(), "application/json");\ + httplib::Result response = HttpClient.Post(Route, request_body.dump(), "application/json");\ if (response == nullptr) return result;\ nlohmann::json response_body = nlohmann::json::parse(response->body);\ nlohmann::to_json(response_body, result);\