mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fixed post requests not using provided route
This commit is contained in:
parent
2f2d01713f
commit
00cd76f7b2
@ -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);\
|
||||
|
Loading…
x
Reference in New Issue
Block a user