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

test

parent 6aaf142c
Loading
Loading
Loading
Loading
+12 −1
Changes for src/http.cpp: 12 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -901,8 +901,11 @@ void libhttppp::HttpResponse::send(netplus::con &curconnection,const std::string
  if(datalen==0)
      datalen=data.size();

  if (datalen >= 0)
  if(datalen>=0){
        setContentLength(datalen);
  }else{
      datalen=0;
  }

  std::vector<char> header;

@@ -915,6 +918,12 @@ void libhttppp::HttpResponse::send(netplus::con &curconnection,const std::string
}

void libhttppp::HttpResponse::send(netplus::con &curconnection,const unsigned  char &data,int datalen){
  if(datalen>=0){
        setContentLength(datalen);
  }else{
      datalen=0;
  }

  if (datalen >= 0)
    setContentLength(datalen);

@@ -935,6 +944,8 @@ void libhttppp::HttpResponse::send(netplus::con &curconnection,const std::vector

  if(datalen>=0){
        setContentLength(datalen);
  }else{
      datalen=0;
  }

  std::vector<char> header;