Skip to content

Commit 9e48754

Browse files
committed
#5121 Proxy aggregation now keeps only common headers in aggregated data
1 parent c20be23 commit 9e48754

File tree

1 file changed

+2
-1
lines changed
  • stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler

1 file changed

+2
-1
lines changed

stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/Aggregator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.nio.file.Path;
2121
import java.util.Iterator;
2222
import java.util.Map;
23+
import java.util.Objects;
2324
import java.util.concurrent.atomic.AtomicBoolean;
2425
import java.util.concurrent.atomic.AtomicLong;
2526
import java.util.function.Consumer;
@@ -103,7 +104,7 @@ public void addDir(final Path dir) {
103104
final Map.Entry<String, String> entry = iterator.next();
104105
final String otherValue = headers.get(entry.getKey());
105106
// If this header is different then remove the common header.
106-
if (!entry.getValue().equals(otherValue)) {
107+
if (!Objects.equals(entry.getValue(), otherValue)) {
107108
iterator.remove();
108109
}
109110
}

0 commit comments

Comments
 (0)