Encode possible binary characters in headers; add more tests

This commit is contained in:
Ervin Hegedus
2025-11-13 23:09:14 +01:00
parent 85384febb7
commit 102275fd01
2 changed files with 129 additions and 2 deletions

View File

@@ -1622,7 +1622,7 @@ std::string Transaction::toJSON(int parts) {
m_variableRequestHeaders.resolve(&l);
for (auto &h : l) {
LOGFY_ADD(h->getKey().c_str(), h->getValue());
LOGFY_ADD(utils::string::toHexIfNeeded(h->getKey().c_str()).c_str(), utils::string::toHexIfNeeded(h->getValue()));
delete h;
}