netty5/codec-http/src
Stephane Landelle ccd01934f5
Merge WebSocket extensions, close #10792 (#10956)
Motivation:

We currently append extensions to the user defined "sec-websocket-extensions" headers. This can cause duplicated entries.

Modifications:

* Replace existing `WebSocketExtensionUtil#appendExtension` private helper with a new `computeMergeExtensionsHeaderValue`. User defined parameters have higher precedence.
* Add tests (existing method wasn't tested)
* Reuse code for both client and server side (code was duplicated).

Result:

No more duplicated entries when user defined extensions overlap with the ones Netty generated.
2021-01-22 08:15:56 +01:00
..
main Merge WebSocket extensions, close #10792 (#10956) 2021-01-22 08:15:56 +01:00
test Merge WebSocket extensions, close #10792 (#10956) 2021-01-22 08:15:56 +01:00