Loading CMakeLists.txt +0 −1 Original line number Diff line number Diff line cmake_minimum_required(VERSION 3.0) find_package(libnetplus REQUIRED) find_package(libcryptplus REQUIRED) find_package(httppp REQUIRED) project(guestbook) Loading main.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -91,9 +91,9 @@ public: book->appendChild(&guestul); } std::string hdoc; libhtmlpp::print(&site,nullptr,hdoc); resp.send(curcon,hdoc.c_str(),hdoc.length()); libhtmlpp::HtmlString hdoc; libhtmlpp::print(&site,hdoc); resp.send(curcon,hdoc.c_str(),hdoc.size()); } catch (libhttppp::HTTPException& e) { if (e.getErrorType() != libhttppp::HTTPException::Note) { libhttppp::HttpResponse curres; Loading Loading
CMakeLists.txt +0 −1 Original line number Diff line number Diff line cmake_minimum_required(VERSION 3.0) find_package(libnetplus REQUIRED) find_package(libcryptplus REQUIRED) find_package(httppp REQUIRED) project(guestbook) Loading
main.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -91,9 +91,9 @@ public: book->appendChild(&guestul); } std::string hdoc; libhtmlpp::print(&site,nullptr,hdoc); resp.send(curcon,hdoc.c_str(),hdoc.length()); libhtmlpp::HtmlString hdoc; libhtmlpp::print(&site,hdoc); resp.send(curcon,hdoc.c_str(),hdoc.size()); } catch (libhttppp::HTTPException& e) { if (e.getErrorType() != libhttppp::HTTPException::Note) { libhttppp::HttpResponse curres; Loading