Closed lachlan-roberts closed 4 days ago
@gregw @joakime I have changed it so that the HttpFields.asMap
decides if the map is modifiable or not. If it is not modifiable it will wrap the HttpFields
instead of being backed by a TreeMap
, so that any modification to the map is also made to the HttpFields
.
I have also reviewed the error handling for the WebSocketCreator
s, which I found to be incorrect in some places.
Issue #12429
Add a new static method
HttpFields.asMap(HttpFields fields)
and use it everywhere in WebSocket where theHttpFields
are converted into aMap<String, List<String>>
so that the headers in the map are treated as case-insensitive.