build: compile dist/ [auto]

This commit is contained in:
github-actions[bot]
2026-03-05 12:14:40 +00:00
parent 9b491d09eb
commit cf1dbdef64
3 changed files with 8 additions and 3 deletions

7
dist/usage-api.js vendored
View File

@@ -521,7 +521,12 @@ function createProxyTunnelAgent(proxyUrl) {
};
proxySocket.on('data', onData);
});
return proxySocket;
// Must not return the socket here. In Node.js _http_agent.js, createSocket()
// calls: `if (newSocket) oncreate(null, newSocket)` — returning a truthy value
// causes the HTTP request to be written to the raw proxy socket immediately,
// before the CONNECT tunnel is established. Only deliver the final TLS socket
// asynchronously via the callback after the CONNECT handshake succeeds.
return undefined;
}
}();
}