Loading examples/httpsysinfo.cpp +1 −1 Changes for examples/httpsysinfo.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ public: sys.TimeInfo(index); sys.KernelInfo(index); libhtmlpp::print(&index,html); curres.send(curreq,html.data(),html.size()); curres.send(curreq,html.data(),html.length()); }else if(curreq.getRequestURL()=="/images/header.png"){ curres.setContentType("image/png"); curres.setContentLength(header_png_size); Loading src/http.cpp +0 −4 Changes for src/http.cpp: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -831,11 +831,7 @@ void libhttppp::HttpResponse::setState(const std ::string &httpstate){ } void libhttppp::HttpResponse::setContentLength(size_t len){ try{ _ContentLength->at(0)=len; }catch(...){ _ContentLength->push_back(len); } } void libhttppp::HttpResponse::setContentType(const std::string &type){ Loading Loading
examples/httpsysinfo.cpp +1 −1 Changes for examples/httpsysinfo.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ public: sys.TimeInfo(index); sys.KernelInfo(index); libhtmlpp::print(&index,html); curres.send(curreq,html.data(),html.size()); curres.send(curreq,html.data(),html.length()); }else if(curreq.getRequestURL()=="/images/header.png"){ curres.setContentType("image/png"); curres.setContentLength(header_png_size); Loading
src/http.cpp +0 −4 Changes for src/http.cpp: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -831,11 +831,7 @@ void libhttppp::HttpResponse::setState(const std ::string &httpstate){ } void libhttppp::HttpResponse::setContentLength(size_t len){ try{ _ContentLength->at(0)=len; }catch(...){ _ContentLength->push_back(len); } } void libhttppp::HttpResponse::setContentType(const std::string &type){ Loading