Skip to content

Commit 514abeb

Browse files
committed
Remove EOL chars from MULTIPART_PART_HEADER variable
1 parent dabf79e commit 514abeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/request_body_processor/multipart.cc

+1
Original file line numberDiff line numberDiff line change
@@ -935,6 +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';
938939
m_mpp->m_last_header_line.assign(m_buf);
939940
} else {
940941
m_mpp->m_last_header_line.assign("");

0 commit comments

Comments
 (0)