]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h1: add a WebSocket key on handshake if needed
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 11 Dec 2020 16:53:07 +0000 (17:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:37:14 +0000 (16:37 +0100)
commitaad333a9fceb3247a503d15c140aa1d7c2193a3c
tree95e1d6b57d8f1db4d06921edcca1c95b4f8d62d6
parent9bf957335e2c385b74901481f7a89c9565dfce53
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.
include/haproxy/h1.h
src/h1.c
src/mux_h1.c