feat: make body editable on proxy client req listeners

This commit is contained in:
2026-04-12 13:12:42 -03:00
parent 698ac445e0
commit 26038a03d1
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ void Spoofer::registerListeners(Proxy* proxy)
this->serverResponseHandler(url, body, respHeaders);
});
proxy->OnClientRequest.addListener([this](std::string& url, const std::string& body, std::string& reqHeaders) {
proxy->OnClientRequest.addListener([this](const std::string& url, std::string& body, std::string& reqHeaders) {
this->clientRequestHandler(url, body, reqHeaders);
});
}