Changed strip methodology to MULTIPART_PART_HEADERS

This commit is contained in:
Ervin Hegedüs 2023-04-23 17:32:26 +02:00
parent 6fbdee9ff0
commit 6623c0ae29

View File

@ -935,8 +935,7 @@ int Multipart::process_part_header(std::string *error, int offset) {
"Multipart: Added part header \"" + header_name \
+ "\" \"" + header_value + "\".");
if (len_without_termination > 0) {
m_buf[len_without_termination] = '\0';
m_mpp->m_last_header_line.assign(m_buf);
m_mpp->m_last_header_line.assign(m_buf, len_without_termination);
} else {
m_mpp->m_last_header_line.assign("");
}