This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new b585e4c Change MIMEHdr::value_append_or_set to handle duplicate
headers (always add to last duplicate).
b585e4c is described below
commit b585e4c9263bcc305ae737fdeadb8dc05ce8f3b8
Author: Alan M. Carroll <[email protected]>
AuthorDate: Wed Jun 6 11:58:41 2018 -0500
Change MIMEHdr::value_append_or_set to handle duplicate headers (always add
to last duplicate).
(cherry picked from commit d01fa15a4ac8a21c46423de3d986da653b20f27d)
---
proxy/hdrs/MIME.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxy/hdrs/MIME.h b/proxy/hdrs/MIME.h
index d6cc75d..ee5fa6a 100644
--- a/proxy/hdrs/MIME.h
+++ b/proxy/hdrs/MIME.h
@@ -1397,6 +1397,9 @@ MIMEHdr::value_append_or_set(const char *name, const int
name_length, char *valu
MIMEField *field = nullptr;
if ((field = field_find(name, name_length)) != nullptr) {
+ while (field->m_next_dup) {
+ field = field->m_next_dup;
+ }
field_value_append(field, value, value_length, true);
} else {
value_set(name, name_length, value, value_length);
--
To stop receiving notification emails like this one, please contact
[email protected].