Loading src/http.cpp +12 −1 Changes for src/http.cpp: 12 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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); Loading @@ -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; Loading Loading
src/http.cpp +12 −1 Changes for src/http.cpp: 12 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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); Loading @@ -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; Loading