]> git.kaiwu.me - njs.git/commit
Fetch: fix missing CONNECT request terminator without proxy auth
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 11 Jun 2026 23:48:37 +0000 (16:48 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 12 Jun 2026 03:26:59 +0000 (20:26 -0700)
commit9462472ee75c704f0a6b6ffa8b3785bec1c71598
tree19c6e43f84db85b41b2bf487d5e024db1e447719
parent0365e3ad0d822c8d49d58a324b46cb15aa99195c
Fetch: fix missing CONNECT request terminator without proxy auth

Previously, ngx_js_http_build_connect_request() emitted the blank
line terminating the request headers only when a proxy auth header
was present.  An HTTPS request through a proxy configured without
credentials sent a CONNECT request with no terminating blank line,
so the proxy kept waiting for more headers and the fetch timed out.
nginx/ngx_js_http.c
nginx/t/js_fetch_proxy_https.t