Closed SergeAstapov closed 3 years ago
@rwjblue updated only two tests where we explicitly used response._headers
as this is now deprecated API which will be removed from Node.js itself and I believe we should stop using ourselves (although support it for the time being).
Method
response.getHeaders()
was introduced in Node.js v7.7 Node.js PR https://github.com/nodejs/node/pull/11562Property
response._headers
deprecated in Node.js v12.0 Node.js PR https://github.com/nodejs/node/pull/24167Deprecation documentation https://nodejs.org/docs/latest-v12.x/api/deprecations.html#deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames
This fixes an issue I see in Node.js v14: