We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790a2fe commit baa4542Copy full SHA for baa4542
src/main/java/hudson/remoting/Engine.java
@@ -62,7 +62,9 @@
62
import java.util.ArrayList;
63
import java.util.Arrays;
64
import java.util.Base64;
65
+import java.util.Collections;
66
import java.util.HashMap;
67
+import java.util.LinkedHashMap;
68
import java.util.List;
69
import java.util.Map;
70
import java.util.Set;
@@ -415,7 +417,7 @@ public void setWebSocket(boolean webSocket) {
415
417
416
418
@CheckForNull
419
public Map<String, String> getWebSocketHeaders() {
- return webSocketHeaders != null ? Map.copyOf(webSocketHeaders) : Map.of();
420
+ return webSocketHeaders != null ? Collections.unmodifiableMap(new LinkedHashMap<>(webSocketHeaders)) : Map.of();
421
}
422
423
/**
0 commit comments