Loading src/http.cpp +2 −3 Changes for src/http.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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("="); Loading @@ -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) Loading Loading
src/http.cpp +2 −3 Changes for src/http.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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("="); Loading @@ -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) Loading