Files
nats-server/server
Ivan Kozlovic ac0a1ee8fd Fixed compression http header request/response
The issue was introduced by PR #1858.

Key points:

- Sec-WebSocket-Extensions must contain approved headers, so moving
the "no-masking" private extension to its own header "Nats-No-Masking".

- The format of the permessage-deflate negotiation response became
invalid, I have fixed that.

- For leaf nodes, if `permessage-deflate` extension is not at all
present in the response, then simply disable compression, however
if it is present but there is no server/client no context take over,
then we have to fail the connection.

- A leafnode test was not setting the "NoMasking" option so the
test TestLeafNodeWSNoMaskingRejected was not capturing possible
error if negotiation failed.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-02-01 12:10:37 -07:00
..
2020-06-12 15:48:38 -07:00
2020-05-19 14:15:11 -07:00
2020-11-30 20:08:44 -07:00
2021-01-30 17:24:52 -08:00
2020-12-14 19:48:54 -05:00
2020-02-25 19:53:09 -05:00
2021-01-14 01:14:52 -08:00
2020-11-17 18:57:45 +00:00
2021-01-14 01:14:52 -08:00
2021-01-29 13:25:02 -05:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2019-05-06 15:41:38 -07:00
2021-01-29 13:25:02 -05:00
2021-01-29 13:25:02 -05:00
2019-12-12 11:58:24 -07:00
2021-01-07 18:19:25 -05:00
2021-01-26 15:55:00 -07:00
2020-06-12 10:03:47 -06:00
2021-01-30 14:00:26 -08:00
2018-10-06 14:06:14 -07:00
2021-01-14 01:14:52 -08:00
2020-11-30 20:08:44 -07:00
2021-01-29 17:51:14 -08:00
2018-03-15 22:31:07 -07:00
2019-11-14 20:05:32 -07:00
2018-03-15 22:31:07 -07:00
2019-11-14 20:05:32 -07:00
2019-11-14 20:05:32 -07:00
2019-12-12 11:58:24 -07:00