reta commented on code in PR #1819:
URL: https://github.com/apache/cxf/pull/1819#discussion_r1572837369
##########
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 am wondering if this is even correct, why not to add values?
I believe we may just use ` header.add`, the multiple values are
concatenated together using `,` (at least, should):
```
if (!header.contains(value)) {
header.add(value);
}
```
```
--
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]