fix: update to reflect callback changes
Build / build (push) Failing after 2m45s

This commit is contained in:
2026-03-22 07:52:15 -03:00
parent 5e701e1e1b
commit 510241e311
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -34,10 +34,9 @@ void Spoofer::registerListeners(Proxy* proxy)
this->serverResponseHandler(url, body, respHeaders);
});
proxy->OnClientRequest.addListener(
[this](const std::string& url, const std::string& body, std::string& reqHeaders) {
this->clientRequestHandler(url, body, reqHeaders);
});
proxy->OnClientRequest.addListener([this](std::string& url, const std::string& body, std::string& reqHeaders) {
this->clientRequestHandler(url, body, reqHeaders);
});
}
void Spoofer::loadData()
@@ -455,7 +454,7 @@ void Spoofer::serverResponseHandler(const std::string& url, std::string& body, s
}
}
void Spoofer::clientRequestHandler(const std::string& url, const std::string& body, std::string& /*reqHeaders*/)
void Spoofer::clientRequestHandler(std::string& url, const std::string& body, std::string& reqHeaders)
{
if (url.find("api/v1/dbd-character-data/bloodweb") != std::string::npos ||
url.find("api/v1/dbd-character-data/bulk-spending-bloodweb") != std::string::npos)
+1 -1
View File
@@ -22,7 +22,7 @@ class Spoofer
void modifyCharacterData(nlohmann::json& js);
void serverResponseHandler(const std::string& url, std::string& body, std::string& respHeaders);
void clientRequestHandler(const std::string& url, const std::string& body, std::string& reqHeaders);
void clientRequestHandler(std::string& url, const std::string& body, std::string& reqHeaders);
std::unordered_set<std::string> _camperItemIds;
std::unordered_set<std::string> _slasherPowerIds;