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

test

parent ff4c0aef
Loading
Loading
Loading
Loading
+2 −3
Changes for src/http.cpp: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -2071,8 +2071,8 @@ void libhttppp::HttpCookie::parse(libhttppp::HttpRequest &curreq){
    size_t semicolon_pos;

    // Loop through the raw string, splitting by semicolon (';')
    while ((semicolon_pos = raw_cookie_string.find(';', current_pos)) != std::string::npos) {
        std::string cpair = raw_cookie_string.substr(current_pos, semicolon_pos - current_pos);
    for(HttpHeader::HeaderData::Values *curval=curreq.getHeaderData("cookie")->getfirstValue(); curval; curval=curval->nextvalue()){
        std::string cpair = curval->getvalue();
        trim(cpair); // Trim whitespace around the entire pair

        size_t eq_pos = cpair.find("=");
@@ -2093,7 +2093,6 @@ void libhttppp::HttpCookie::parse(libhttppp::HttpRequest &curreq){
                cdat->_Value = value;
            }
        }
        current_pos = semicolon_pos + 1; // Start search after the semicolon
    }

    // Process the final pair after the last semicolon (or the only pair if no semicolons)