During the message formatting, if websocket handshake key must be added by
the mux itself, the corresponding headers were not inserted in lowercase as
expected. It is not really an issue but it is not consistant with processing
on other headers. So let's fix it.
*/
h1_generate_random_ws_input_key(h1s->ws_key);
- if (!h1_format_htx_hdr(ist("Sec-Websocket-Key"),
+ if (!h1_format_htx_hdr(ist("sec-websocket-key"),
ist(h1s->ws_key),
&outbuf, hdrs_map)) {
goto full;
char key[29];
h1_calculate_ws_output_key(h1s->ws_key, key);
- if (!h1_format_htx_hdr(ist("Sec-Websocket-Accept"),
+ if (!h1_format_htx_hdr(ist("sec-websocket-accept"),
ist(key),
&outbuf, hdrs_map)) {
goto full;