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