Loading src/http.cpp +3 −10 Original line number Diff line number Diff line Loading @@ -365,20 +365,13 @@ void libhttppp::HttpResponse::setContentLength(size_t len){ void libhttppp::HttpResponse::setContentType(const char* type){ _ContentType=setHeaderData("content-type"); try{ _ContentLength->at(0)=type; }catch(...){ _ContentLength->push_back(type); } _ContentType->push_back(type); } void libhttppp::HttpResponse::setConnection(const char* type){ _Connection=setHeaderData("connection"); try{ _ContentLength->at(0)=type; }catch(...){ _ContentLength->push_back(type); } _Connection->push_back(type); } void libhttppp::HttpResponse::setVersion(const char* version){ Loading Loading
src/http.cpp +3 −10 Original line number Diff line number Diff line Loading @@ -365,20 +365,13 @@ void libhttppp::HttpResponse::setContentLength(size_t len){ void libhttppp::HttpResponse::setContentType(const char* type){ _ContentType=setHeaderData("content-type"); try{ _ContentLength->at(0)=type; }catch(...){ _ContentLength->push_back(type); } _ContentType->push_back(type); } void libhttppp::HttpResponse::setConnection(const char* type){ _Connection=setHeaderData("connection"); try{ _ContentLength->at(0)=type; }catch(...){ _ContentLength->push_back(type); } _Connection->push_back(type); } void libhttppp::HttpResponse::setVersion(const char* version){ Loading