Loading examples/httpauth.cpp +2 −2 Changes for examples/httpauth.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public: << "<li><a href=\"/httpdigestauth\"> Digestauth </<a></li>"; condat << "</ul></body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); }else if(strncmp(cururl,"/httpbasicauth",strlen(cururl))==0 || strncmp(cururl,"/httpdigestauth",strlen(cururl))==0){ Loading @@ -95,7 +95,7 @@ public: curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); return; }else{ Loading examples/httpcon.cpp +1 −1 Changes for examples/httpcon.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { } condat << "</body></html>"; std::string html; libhtmlpp::print((condat.parse()),nullptr,html); libhtmlpp::print((condat.parse()),&html); curres.send(curcon,html.c_str(),html.length()); }; Loading examples/httpcookie.cpp +1 −1 Changes for examples/httpcookie.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public: _HTMLDat << "</body></html>"; std::string html; libhtmlpp::print(_HTMLDat.parse(),nullptr,html); libhtmlpp::print(_HTMLDat.parse(),&html); _Curres.send(_Curcon,html.c_str(),html.length()); }; Loading examples/httpform.cpp +1 −1 Changes for examples/httpform.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ private: condat+=formdat; condat << "</div></body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon, html.c_str(), html.length()); }; }; Loading examples/httpproxy.cpp +1 −1 Changes for examples/httpproxy.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { } condat << "</body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); }; Loading Loading
examples/httpauth.cpp +2 −2 Changes for examples/httpauth.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public: << "<li><a href=\"/httpdigestauth\"> Digestauth </<a></li>"; condat << "</ul></body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); }else if(strncmp(cururl,"/httpbasicauth",strlen(cururl))==0 || strncmp(cururl,"/httpdigestauth",strlen(cururl))==0){ Loading @@ -95,7 +95,7 @@ public: curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); return; }else{ Loading
examples/httpcon.cpp +1 −1 Changes for examples/httpcon.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { } condat << "</body></html>"; std::string html; libhtmlpp::print((condat.parse()),nullptr,html); libhtmlpp::print((condat.parse()),&html); curres.send(curcon,html.c_str(),html.length()); }; Loading
examples/httpcookie.cpp +1 −1 Changes for examples/httpcookie.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public: _HTMLDat << "</body></html>"; std::string html; libhtmlpp::print(_HTMLDat.parse(),nullptr,html); libhtmlpp::print(_HTMLDat.parse(),&html); _Curres.send(_Curcon,html.c_str(),html.length()); }; Loading
examples/httpform.cpp +1 −1 Changes for examples/httpform.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ private: condat+=formdat; condat << "</div></body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon, html.c_str(), html.length()); }; }; Loading
examples/httpproxy.cpp +1 −1 Changes for examples/httpproxy.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { } condat << "</body></html>"; std::string html; libhtmlpp::print(condat.parse(),nullptr,html); libhtmlpp::print(condat.parse(),&html); curres.send(curcon,html.c_str(),html.length()); }; Loading