Loading src/gyr_meter.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -279,8 +279,13 @@ std::vector<char> GyrMeter::_fetch() { if (whdr && whdr->getfirstValue()) { std::string challenge = whdr->getfirstValue()->getvalue(); // libhttppp splits header values on commas; WWW-Authenticate Digest // parameters are also comma-separated, so reassemble all tokens. std::string challenge; for (auto *v = whdr->getfirstValue(); v; v = v->nextvalue()) { if (!challenge.empty()) challenge += ", "; challenge += v->getvalue(); } std::cout << "[gyr] Challenge: " << challenge Loading Loading
src/gyr_meter.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -279,8 +279,13 @@ std::vector<char> GyrMeter::_fetch() { if (whdr && whdr->getfirstValue()) { std::string challenge = whdr->getfirstValue()->getvalue(); // libhttppp splits header values on commas; WWW-Authenticate Digest // parameters are also comma-separated, so reassemble all tokens. std::string challenge; for (auto *v = whdr->getfirstValue(); v; v = v->nextvalue()) { if (!challenge.empty()) challenge += ", "; challenge += v->getvalue(); } std::cout << "[gyr] Challenge: " << challenge Loading