Commit 0c39eb64 authored by jan.koester's avatar jan.koester
Browse files

test

parent 077f7237
Loading
Loading
Loading
Loading
+3 −3
Changes for src/http.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -216,19 +216,19 @@ void libhttppp::HttpResponse::setState(const char* httpstate){
}

void libhttppp::HttpResponse::setContentLength(size_t len){
  if(!getData("content-length"))
  if(!_ContentLength)
      _ContentLength=setData("content-length");
  *_ContentLength<<len;
}

void libhttppp::HttpResponse::setContentType(const char* type){
  if(!getData("content-type"))
  if(!_ContentType)
    _ContentType=setData("content-type");
  *_ContentType<<type;
}

void libhttppp::HttpResponse::setConnection(const char* type){
  if(!getData("connection"))
  if(!_Connection))
    _Connection=setData("connection");
  *_Connection<<type;
}