Commit b0caff90 authored by jan.koester's avatar jan.koester
Browse files

test

parent 69fc89d2
Loading
Loading
Loading
Loading
+5 −0
Changes for src/http.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1796,6 +1796,11 @@ void libhttppp::HttpForm::_parseMulitpart(const netplus::condata<char> &data) {

    size_t partEnd = (closePos != std::string::npos) ? closePos : delimPos; // points to CR of the CRLF before boundary

    // Trim trailing CRLF from part body if present
    if (partEnd >= 2 && req[partEnd - 2] == '\r' && req[partEnd - 1] == '\n') {
      partEnd -= 2;
    }

    if (partStart != std::string::npos && partEnd >= partStart) {
      _parseMultiSection(req, partStart, partEnd);
    }