diff options
author | Shulyaka <Shulyaka@gmail.com> | 2022-10-23 13:29:22 +0300 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-10-23 09:36:27 -0400 |
commit | cda9b71653bb6a633957f653fa08e819b32e601e (patch) | |
tree | ae2cfdeeaf19b523366e7bcc9bee55aae13ad001 /src/mod_proxy.c | |
parent | 6d9d2cab97d19ab4c6de96d373509bebb8bd8372 (diff) | |
download | lighttpd-git-cda9b71653bb6a633957f653fa08e819b32e601e.tar.gz |
[mod_proxy,mod_cgi] fix dummy Sec-WebSocket-Key
fix dummy Sec-WebSocket-Key value to remove excess '\n'
x-ref:
"Fix websocket HTTP/2 to HTTP/1.1 proxy"
https://github.com/lighttpd/lighttpd1.4/pull/123
github: closes #123
Diffstat (limited to 'src/mod_proxy.c')
-rw-r--r-- | src/mod_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index 0de53ac8..25194d17 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -1013,7 +1013,7 @@ static handler_t proxy_create_env(gw_handler_ctx *gwhctx) { if (!http_header_request_get(r, HTTP_HEADER_OTHER, CONST_STR_LEN("Sec-WebSocket-Key"))) buffer_append_string_len(b, CONST_STR_LEN( - "\r\nSec-WebSocket-Key: MDAwMDAwMDAwMDAwMDAwMAo=")); + "\r\nSec-WebSocket-Key: MDAwMDAwMDAwMDAwMDAwMA==")); buffer_append_string_len(b, CONST_STR_LEN( "\r\nUpgrade: websocket" "\r\nConnection: close, upgrade\r\n\r\n")); |