Loading main.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ public: gform.parse(curreq); for (libhttppp::HttpForm::UrlcodedForm::Data * cururlform = gform.UrlFormData.getFormData(); cururlform; cururlform = cururlform->nextData()) { if("guestname"==cururlform->getKey()){ if(cururlform->getKey()=="guestname"){ guestname=cururlform->getValue(); }else if(cururlform->getKey()=="guestentry"){ guestentry=cururlform->getValue(); Loading Loading @@ -176,8 +176,8 @@ public: } libhtmlpp::HtmlString hdoc; libhtmlpp::print(&site,hdoc); resp.send(curreq,hdoc.c_str(),hdoc.size()); libhtmlpp::print(site,hdoc); resp.send(curreq,hdoc.c_str(),hdoc.length()); } catch (libhttppp::HTTPException& e) { if (e.getErrorType() != libhttppp::HTTPException::Note) { libhttppp::HttpResponse curres; Loading Loading
main.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ public: gform.parse(curreq); for (libhttppp::HttpForm::UrlcodedForm::Data * cururlform = gform.UrlFormData.getFormData(); cururlform; cururlform = cururlform->nextData()) { if("guestname"==cururlform->getKey()){ if(cururlform->getKey()=="guestname"){ guestname=cururlform->getValue(); }else if(cururlform->getKey()=="guestentry"){ guestentry=cururlform->getValue(); Loading Loading @@ -176,8 +176,8 @@ public: } libhtmlpp::HtmlString hdoc; libhtmlpp::print(&site,hdoc); resp.send(curreq,hdoc.c_str(),hdoc.size()); libhtmlpp::print(site,hdoc); resp.send(curreq,hdoc.c_str(),hdoc.length()); } catch (libhttppp::HTTPException& e) { if (e.getErrorType() != libhttppp::HTTPException::Note) { libhttppp::HttpResponse curres; Loading