Commit c6df8972 authored by jan.koester's avatar jan.koester
Browse files

test

parent fd46a107
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ webedit::Server::~Server() {

std::string webedit::Server::getCookie(libhttppp::HttpRequest &curreq,
                                        const std::string &name) {
    try {
        libhttppp::HttpCookie cookie;
        cookie.parse(curreq);
        auto *cd = cookie.getfirstCookieData();
@@ -73,6 +74,8 @@ std::string webedit::Server::getCookie(libhttppp::HttpRequest &curreq,
                return cd->getValue();
            cd = cd->nextCookieData();
        }
    } catch (...) {
    }
    return "";
}