Commit 8642d8e4 authored by jan.koester's avatar jan.koester
Browse files

urgentfix

parent 59d5f467
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -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){