Commit 37cdff35 authored by jan.koester's avatar jan.koester
Browse files

fixed

parent bef9b2a0
Loading
Loading
Loading
Loading
+1 −1
Changes for examples/httpsysinfo.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
+0 −4
Changes for src/http.cpp: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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){