Commit 5fed6cb2 authored by jan.koester's avatar jan.koester
Browse files

test

parent 6478a732
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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