Commit 4a379394 authored by jan.koester's avatar jan.koester
Browse files

urgent

parent 57c2face
Loading
Loading
Loading
Loading
+1 −6
Changes for src/http.cpp: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -851,7 +851,7 @@ size_t libhttppp::HttpResponse::printHeader(std::vector<char> &buffer){
    buffer.insert(buffer.end(), data.begin(), data.end());
  };

  append(_Version);
  append(HTTPVERSION(_Version));
  append(" ");
  append(_State);
  append(" ");
@@ -1316,11 +1316,6 @@ void libhttppp::HttpRequest::printHeader(std::string &buffer){
  buffer.append("\r\n");
}

// CONCEPTUAL IMPROVEMENT FOR POST:
// For POST requests, ensure you call setHeaderData("Content-Length", value)
// before calling printHeader, where value is the size of the request body.


int libhttppp::HttpRequest::getRequestType(){
  return _RequestType;
}