Loading src/http.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1369,8 +1369,11 @@ void libhttppp::HttpCookie::setcookie(HttpResponse *curresp, void libhttppp::HttpCookie::parse(libhttppp::HttpRequest* curreq){ HttpHeader::HeaderData *hc = curreq->getData("cookie"); if(!hc) return; if(!hc){ HTTPException httpexception; httpexception[HTTPException::Note] << "no cookies are set!"; throw httpexception; } std::vector<char> cdat; std::copy(curreq->getData(hc),curreq->getData(hc)+strlen(curreq->getData(hc)), Loading Loading
src/http.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1369,8 +1369,11 @@ void libhttppp::HttpCookie::setcookie(HttpResponse *curresp, void libhttppp::HttpCookie::parse(libhttppp::HttpRequest* curreq){ HttpHeader::HeaderData *hc = curreq->getData("cookie"); if(!hc) return; if(!hc){ HTTPException httpexception; httpexception[HTTPException::Note] << "no cookies are set!"; throw httpexception; } std::vector<char> cdat; std::copy(curreq->getData(hc),curreq->getData(hc)+strlen(curreq->getData(hc)), Loading