use getHeaders instead of deprecated _headers prop
Inspired by https://github.com/villadora/express-http-proxy/pull/430/files
Use of _headers causes a deprecation warning in Node v12.0.0+
error: (node:40) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
See: https://nodejs.org/api/deprecations.html#DEP0066
Can this PR be merged or is more work required? Thanks
Can this PR be merged?
Thanks
@villadora @monkpow @nik-blue-lava could this branch be merged?
I didn't see your PR and created my own and a whole new package with it. In case someone is interested: https://github.com/villadora/express-http-proxy/issues/509 and https://www.npmjs.com/package/express-http-proxy-2