Skip to content

Commit 6623c0a

Browse files
committed
Changed strip methodology to MULTIPART_PART_HEADERS
1 parent 6fbdee9 commit 6623c0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/request_body_processor/multipart.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,7 @@ int Multipart::process_part_header(std::string *error, int offset) {
935935
"Multipart: Added part header \"" + header_name \
936936
+ "\" \"" + header_value + "\".");
937937
if (len_without_termination > 0) {
938-
m_buf[len_without_termination] = '\0';
939-
m_mpp->m_last_header_line.assign(m_buf);
938+
m_mpp->m_last_header_line.assign(m_buf, len_without_termination);
940939
} else {
941940
m_mpp->m_last_header_line.assign("");
942941
}

0 commit comments

Comments
 (0)