Commit 115a7cc7 authored by jan.koester's avatar jan.koester
Browse files

new api changes

parent 7e951e9e
Loading
Loading
Loading
Loading
+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)
+3 −3
Original line number Diff line number Diff line
@@ -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;