Use correct header collection for forwarding

This commit is contained in:
Sander Declerck 2025-11-14 09:08:27 +01:00
parent 59fa76a42f
commit 06b287d4d4
No known key found for this signature in database

View file

@ -163,7 +163,7 @@ function createProxyRequest(hostname, req, res, requestHandler) {
port: 443, port: 443,
path: req.url, path: req.url,
method: req.method, method: req.method,
headers: { ...req.headers }, headers: { ...headers },
}; };
const httpsProxy = process.env.HTTPS_PROXY || process.env.https_proxy; const httpsProxy = process.env.HTTPS_PROXY || process.env.https_proxy;