Files
ws/lib
Luigi Pinca eeb76d313e [security] Fix crash when the Upgrade header cannot be read (#2231)
It is possible that the Upgrade header is correctly received and handled
(the `'upgrade'` event is emitted) without its value being returned to
the user. This can happen if the number of received headers exceed the
`server.maxHeadersCount` or `request.maxHeadersCount` threshold. In this
case `incomingMessage.headers.upgrade` may not be set.

Handle the case correctly and abort the handshake.

Fixes #2230
2024-06-16 15:20:07 +02:00
..
2018-11-17 09:39:58 +01:00
2018-11-17 09:39:58 +01:00
2019-03-15 17:47:51 +01:00
2018-11-17 09:39:58 +01:00