mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Cleanup registryProxy, increase timeout on DockerTestContainer
This commit is contained in:
parent
f4933b08d0
commit
2968960b41
2 changed files with 7 additions and 3 deletions
|
|
@ -16,7 +16,6 @@ const state = {
|
|||
|
||||
export function createSafeChainProxy() {
|
||||
const server = createProxyServer();
|
||||
server.on("connect", handleConnect);
|
||||
|
||||
return {
|
||||
startServer: () => startServer(server),
|
||||
|
|
@ -55,7 +54,12 @@ export function mergeSafeChainProxyEnvironmentVariables(env) {
|
|||
}
|
||||
|
||||
function createProxyServer() {
|
||||
const server = http.createServer(handleHttpProxyRequest);
|
||||
const server = http.createServer(
|
||||
handleHttpProxyRequest // This handles plain HTTP requests
|
||||
);
|
||||
|
||||
// This handles HTTPS requests via the CONNECT method
|
||||
server.on("connect", handleConnect);
|
||||
|
||||
return server;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue