Node version 12 depracated OutgoingMessage.prototype._headers, which is used here in response.js L#18.
The fix is easy: Use getHeaders() instead:
this.statusCode = statusCode
- if (this._headers) {
+ if (this.getHeaders()) {
// Slow-case: when progressive API and header fields are passed.
if (obj) {
You can inspect the full trace when running node with --trace-deprecation flag.
Node version 12 depracated
OutgoingMessage.prototype._headers
, which is used here inresponse.js
L#18.The fix is easy: Use
getHeaders()
instead:You can inspect the full trace when running node with
--trace-deprecation
flag.