Commit e678b10c authored by jan.koester's avatar jan.koester
Browse files

examples fixed

parent dfdafdf8
Loading
Loading
Loading
Loading
+2 −2
Changes for examples/httpauth.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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){
@@ -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{
+1 −1
Changes for examples/httpcon.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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());
};

+1 −1
Changes for examples/httpcookie.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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());
    };
    
+1 −1
Changes for examples/httpform.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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());
    };
};
+1 −1
Changes for examples/httpproxy.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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());
};