commit | aad333a9fceb3247a503d15c140aa1d7c2193a3c | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Dec 11 17:53:07 2020 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Jan 28 16:37:14 2021 +0100 |
tree | 95e1d6b57d8f1db4d06921edcca1c95b4f8d62d6 | |
parent | 9bf957335e2c385b74901481f7a89c9565dfce53 [diff] |
MEDIUM: h1: add a WebSocket key on handshake if needed Add the header Sec-Websocket-Key when generating a h1 handshake websocket without this header. This is the case when doing h2-h1 conversion. The key is randomly generated and base64 encoded. It is stored on the session side to be able to verify response key and reject it if not valid.