fast-proxy
fast-proxy copied to clipboard
Overwriting requests agent and other properties with opts.request object
Thank you fo this amazing plugin.
This is a very minor change that will make this plugin more flexible.
I have override the request "agent:" property in function handleHttp1Req (opts, done) by prioritising ...opts.request. object.
This is just making sure that whenever we pass custom properties to opts.request object e.g. opts.request.agent, it will be prioritised and overwrites existing property declarations.
Checklist
- [x] run
npm run testandnpm run benchmark - [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message and code follows the Developer's Certification of Origin and the Code of conduct
A bit late, but would you mind to add a test?