I can't change the headers using onProxyReq when I set the agent using https-proxy-agent
Step-by-step reproduction instructions
1. Configure proxy middleware with a https-proxy-agent agent
2. Add an onProxyReq handler that sets a header
3. Apply load with a larger number of threads/VUs than available sockets.
Expected behavior (be clear and concise)
No errors, perhaps timeouts due to socket availability.
How is http-proxy-middleware used in your project?
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
I can't change the headers using onProxyReq when I set the agent using https-proxy-agent
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
No errors, perhaps timeouts due to socket availability.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response