yvrng commented on code in PR #1819:
URL: https://github.com/apache/cxf/pull/1819#discussion_r1573205491
##########
core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPOutInterceptor.java:
##########
@@ -337,7 +337,10 @@ private static void addHeader(Message message, String
name, String value) {
if (header.isEmpty()) {
header.add(value);
} else {
- header.set(0, header.get(0) + "," + value);
+ String existingValue = header.get(0);
+ if (!existingValue.contains(value)) {
Review Comment:
I was thinking the same, and I confirm, I get the same result by adding the
item directly to the list: values are concatenated with a comma.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]